summaryrefslogtreecommitdiff
path: root/etc/scons
diff options
context:
space:
mode:
authorBen Shteinfeld <ben.shteinfeld@mongodb.com>2017-07-25 14:47:43 -0400
committerBen Shteinfeld <ben.shteinfeld@mongodb.com>2017-07-25 16:05:49 -0400
commit9086f5cda50acf570190f7daf1446f045a6bd317 (patch)
tree9533a92de4f442502dd906e083347970f6981ed9 /etc/scons
parent787e0f9396476ead735d17bcf85ddde9af46bcda (diff)
downloadmongo-9086f5cda50acf570190f7daf1446f045a6bd317.tar.gz
SERVER-30305 Embed bitcode in iOS and tvOS builds
Diffstat (limited to 'etc/scons')
-rw-r--r--etc/scons/xcode_ios.vars2
-rw-r--r--etc/scons/xcode_tvos.vars2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/scons/xcode_ios.vars b/etc/scons/xcode_ios.vars
index 0f9986ccb97..8c268cecaf3 100644
--- a/etc/scons/xcode_ios.vars
+++ b/etc/scons/xcode_ios.vars
@@ -7,7 +7,7 @@ CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'iphoneos', 'clang++']).s
sdk_path = subprocess.check_output(['xcrun', '--sdk', 'iphoneos', '--show-sdk-path']).strip()
-CCFLAGS = "-isysroot {} -miphoneos-version-min=10.2 -arch arm64".format(sdk_path)
+CCFLAGS = "-isysroot {} -miphoneos-version-min=10.2 -arch arm64 -fembed-bitcode".format(sdk_path)
LINKFLAGS = "-Wl,-syslibroot,{} -miphoneos-version-min=10.2 -arch arm64".format(sdk_path)
TARGET_OS = "iOS"
diff --git a/etc/scons/xcode_tvos.vars b/etc/scons/xcode_tvos.vars
index e8ea05e926b..44b8da94e8a 100644
--- a/etc/scons/xcode_tvos.vars
+++ b/etc/scons/xcode_tvos.vars
@@ -7,7 +7,7 @@ CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'appletvos', 'clang++']).
sdk_path = subprocess.check_output(['xcrun', '--sdk', 'appletvos', '--show-sdk-path']).strip()
-CCFLAGS = "-isysroot {} -mtvos-version-min=10.1 -arch arm64".format(sdk_path)
+CCFLAGS = "-isysroot {} -mtvos-version-min=10.1 -arch arm64 -fembed-bitcode".format(sdk_path)
LINKFLAGS = "-Wl,-syslibroot,{} -mtvos-version-min=10.1 -arch arm64".format(sdk_path)
TARGET_OS = "tvOS"