From 0e6bee6a3286da6577b7357c68c22ece12a59564 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 20 Mar 2015 16:54:49 -0700 Subject: [PATCH] Improve handling of 32-bit rebuild on new HXCPP --- lime/tools/platforms/LinuxPlatform.hx | 2 +- lime/tools/platforms/MacPlatform.hx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lime/tools/platforms/LinuxPlatform.hx b/lime/tools/platforms/LinuxPlatform.hx index b6e5681e5..f5d5ca165 100644 --- a/lime/tools/platforms/LinuxPlatform.hx +++ b/lime/tools/platforms/LinuxPlatform.hx @@ -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" ]); } diff --git a/lime/tools/platforms/MacPlatform.hx b/lime/tools/platforms/MacPlatform.hx index 82d4b1c58..d09faa683 100644 --- a/lime/tools/platforms/MacPlatform.hx +++ b/lime/tools/platforms/MacPlatform.hx @@ -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" ]); }