Improve handling of 32-bit rebuild on new HXCPP

This commit is contained in:
Joshua Granick
2015-03-20 16:54:49 -07:00
parent b93fbb9fdf
commit 0e6bee6a32
2 changed files with 4 additions and 4 deletions

View File

@@ -258,7 +258,7 @@ class LinuxPlatform extends PlatformTarget {
if (!targetFlags.exists ("64") && (command == "rebuild" || PlatformHelper.hostArchitecture == Architecture.X86)) { if (!targetFlags.exists ("64") && (command == "rebuild" || PlatformHelper.hostArchitecture == Architecture.X86)) {
commands.push ([ "-Dlinux" ]); commands.push ([ "-Dlinux", "-DHXCPP_M32" ]);
} }

View File

@@ -223,15 +223,15 @@ class MacPlatform extends PlatformTarget {
var commands = []; var commands = [];
if (!targetFlags.exists ("64") && (command == "rebuild" || PlatformHelper.hostArchitecture == Architecture.X64)) { if (!targetFlags.exists ("32") && (command == "rebuild" || PlatformHelper.hostArchitecture == Architecture.X64)) {
commands.push ([ "-Dmac", "-DHXCPP_M64" ]); commands.push ([ "-Dmac", "-DHXCPP_M64" ]);
} }
if (!targetFlags.exists ("32") && (command == "rebuild" || PlatformHelper.hostArchitecture == Architecture.X86)) { if (!targetFlags.exists ("64") && (command == "rebuild" || PlatformHelper.hostArchitecture == Architecture.X86)) {
commands.push ([ "-Dmac" ]); commands.push ([ "-Dmac", "-DHXCPP_M32" ]);
} }