Improve handling of 32-bit rebuild on new HXCPP
This commit is contained in:
@@ -258,7 +258,7 @@ class LinuxPlatform extends PlatformTarget {
|
||||
|
||||
if (!targetFlags.exists ("64") && (command == "rebuild" || PlatformHelper.hostArchitecture == Architecture.X86)) {
|
||||
|
||||
commands.push ([ "-Dlinux" ]);
|
||||
commands.push ([ "-Dlinux", "-DHXCPP_M32" ]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -223,15 +223,15 @@ class MacPlatform extends PlatformTarget {
|
||||
|
||||
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" ]);
|
||||
|
||||
}
|
||||
|
||||
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" ]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user