Minor fix

This commit is contained in:
Joshua Granick
2014-09-30 23:47:23 -07:00
parent 89c7f224f6
commit 7e2d7939bd

View File

@@ -1,4 +1,5 @@
package lime.system;
#if !macro
#if js
@@ -337,4 +338,38 @@ class System {
#end
}
}
#else
import haxe.macro.Compiler;
import haxe.macro.Context;
import sys.FileSystem;
class System {
public static function includeTools () {
var paths = Context.getClassPath ();
for (path in paths) {
if (FileSystem.exists (path + "/tools/CommandLineTools.hx")) {
Compiler.addClassPath (path + "/tools");
}
}
}
}
#end