Use -Dios and -Dsimulator for iOS rebuild, not -Diphoneos and -Diphonesim

This commit is contained in:
Joshua Granick
2015-07-07 09:35:32 -07:00
parent fd51882c82
commit 67759458cf

View File

@@ -326,12 +326,12 @@ class IOSPlatform extends PlatformTarget {
var commands = [];
if (armv6) commands.push ([ "-Diphoneos", "-DHXCPP_CPP11" ]);
if (armv7) commands.push ([ "-Diphoneos", "-DHXCPP_CPP11", "-DHXCPP_ARMV7" ]);
if (armv7s) commands.push ([ "-Diphoneos", "-DHXCPP_CPP11", "-DHXCPP_ARMV7S" ]);
if (arm64) commands.push ([ "-Diphoneos", "-DHXCPP_CPP11", "-DHXCPP_ARM64" ]);
if (i386) commands.push ([ "-Diphonesim", "-DHXCPP_CPP11" ]);
if (x86_64) commands.push ([ "-Diphonesim", "-DHXCPP_M64", "-DHXCPP_CPP11" ]);
if (armv6) commands.push ([ "-Dios", "-DHXCPP_CPP11" ]);
if (armv7) commands.push ([ "-Dios", "-DHXCPP_CPP11", "-DHXCPP_ARMV7" ]);
if (armv7s) commands.push ([ "-Dios", "-DHXCPP_CPP11", "-DHXCPP_ARMV7S" ]);
if (arm64) commands.push ([ "-Dios", "-DHXCPP_CPP11", "-DHXCPP_ARM64" ]);
if (i386) commands.push ([ "-Dios", "-Dsimulator", "-DHXCPP_CPP11" ]);
if (x86_64) commands.push ([ "-Dios", "-Dsimulator", "-DHXCPP_M64", "-DHXCPP_CPP11" ]);
CPPHelper.rebuild (project, commands);