Skip to content

Commit c652026

Browse files
committed
Only embed bitcode for device build; see phoboslab#32
1 parent 1021bc3 commit c652026

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xcodebuildtvos.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ def _get_params(self):
6868
sdk = self._get_sdk_string()
6969
params.extend(("-sdk", sdk))
7070

71-
params.append("OTHER_CFLAGS=-Qunused-arguments -fembed-bitcode")
71+
is_device = len([arch for arch in self.archs
72+
if arch.startswith("arm")]) > 0
73+
if is_device:
74+
params.append("OTHER_CFLAGS=-Qunused-arguments -fembed-bitcode")
75+
7276
return params
7377

7478
def _xcodebuild(self, *actions):

0 commit comments

Comments
 (0)