Trying to enable bitcode for Apple TV

This commit is contained in:
Valerio Santinelli
2015-10-07 20:43:46 +02:00
parent 1e87cdca9c
commit 0772011fa9
2 changed files with 4 additions and 4 deletions

View File

@@ -313,9 +313,9 @@ class TVOSPlatform extends PlatformTarget {
var commands = [];
if (arm64) commands.push ([ "-Dtvos", "-Dappletvos", "-DHXCPP_CPP11", "-DHXCPP_ARM64", "-DOBJC_ARC" ]);
if (i386) commands.push ([ "-Dtvos", "-Dappletvsim", "-Dsimulator", "-DHXCPP_CPP11", "-DOBJC_ARC" ]);
if (x86_64) commands.push ([ "-Dtvos", "-Dappletvsim", "-Dsimulator", "-DHXCPP_M64", "-DHXCPP_CPP11", "-DOBJC_ARC" ]);
if (arm64) commands.push ([ "-Dtvos", "-Dappletvos", "-DHXCPP_CPP11", "-DHXCPP_ARM64", "-DOBJC_ARC", "-DENABLE_BITCODE" ]);
if (i386) commands.push ([ "-Dtvos", "-Dappletvsim", "-Dsimulator", "-DHXCPP_CPP11", "-DOBJC_ARC", "-DENABLE_BITCODE" ]);
if (x86_64) commands.push ([ "-Dtvos", "-Dappletvsim", "-Dsimulator", "-DHXCPP_M64", "-DHXCPP_CPP11", "-DOBJC_ARC", "-DENABLE_BITCODE" ]);
CPPHelper.rebuild (project, commands);

View File

@@ -28,7 +28,7 @@ else
endif
ifeq ("$(CLANG_ENABLE_OBJC_ARC)", "YES")
HXCPP_CLANG := -DHXCPP_CLANG -DOBJC_ARC
HXCPP_CLANG := -DHXCPP_CLANG -DOBJC_ARC -DENABLE_BITCODE
else
HXCPP_CLANG :=
endif