Fix 'Cannot find build target ""' error

This commit is contained in:
Joshua Granick
2017-03-21 13:32:55 -07:00
parent e5070c5ed4
commit ec49da5010

View File

@@ -129,16 +129,16 @@ class LinuxPlatform extends PlatformTarget {
} else { } else {
var haxeArgs = [ hxml ]; var haxeArgs = [ hxml ];
var flags = [];
if (is64) { if (is64) {
haxeArgs.push ("-D"); haxeArgs.push ("-D");
haxeArgs.push ("HXCPP_M64"); haxeArgs.push ("HXCPP_M64");
flags.push ("-DHXCPP_M64");
} }
var flags = [ is64 ? "-DHXCPP_M64" : "" ];
if (!project.targetFlags.exists ("static")) { if (!project.targetFlags.exists ("static")) {
ProcessHelper.runCommand ("", "haxe", haxeArgs); ProcessHelper.runCommand ("", "haxe", haxeArgs);