wscript: add '-fembed-bitcode' when building for iOS (closes #31)
authorPaul Brossier <piem@piem.org>
Fri, 29 Jan 2016 18:50:03 +0000 (19:50 +0100)
committerPaul Brossier <piem@piem.org>
Fri, 29 Jan 2016 18:50:03 +0000 (19:50 +0100)
wscript

diff --git a/wscript b/wscript
index bd03c52..0a50601 100644 (file)
--- a/wscript
+++ b/wscript
@@ -137,6 +137,7 @@ def configure(ctx):
             DEVROOT = "/Applications/Xcode.app/Contents"
             DEVROOT += "/Developer/Platforms/iPhoneOS.platform/Developer"
             SDKROOT = "%(DEVROOT)s/SDKs/iPhoneOS.sdk" % locals()
+            ctx.env.CFLAGS += [ '-fembed-bitcode' ]
             ctx.env.CFLAGS += [ '-arch', 'arm64' ]
             ctx.env.CFLAGS += [ '-arch', 'armv7' ]
             ctx.env.CFLAGS += [ '-arch', 'armv7s' ]