diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-04-07 17:07:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-07 17:07:21 -0700 |
commit | c443576181a6836454176f8c30093db2c67e845d (patch) | |
tree | d4c03fb2bfb29bf2559c87a71421271fdbf73eaa /packaging | |
parent | 924370c0e46c3ec366eafe37d5957973a8ead847 (diff) | |
download | subsurface-c443576181a6836454176f8c30093db2c67e845d.tar.gz |
QML UI: enable embed code for iOS
This should help us with better iOS apps as it allows Apple to run
llvm against our code to improve performance.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/ios/build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index e48feec90..1515704e2 100644 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -74,9 +74,9 @@ echo next building for $ARCH declare -x CC=`xcrun -sdk $SDK_NAME -find clang` declare -x CXX=`xcrun -sdk $SDK_NAME -find clang++` declare -x LD=`xcrun -sdk $SDK_NAME -find ld` - declare -x CFLAGS="-arch $ARCH_NAME -isysroot $SDK_DIR -miphoneos-version-min=6.0 -I$SDK_DIR/usr/include" + declare -x CFLAGS="-arch $ARCH_NAME -isysroot $SDK_DIR -miphoneos-version-min=6.0 -I$SDK_DIR/usr/include -fembed-bitcode" declare -x CXXFLAGS="$CFLAGS" - declare -x LDFLAGS="$CFLAGS -lpthread -lc++ -L$SDK_DIR/usr/lib" + declare -x LDFLAGS="$CFLAGS -lpthread -lc++ -L$SDK_DIR/usr/lib -fembed-bitcode" # openssl build stuff. @@ -186,10 +186,10 @@ echo next building for $ARCH export CROSS_SDK="${OS}${SDK_VERSION}.sdk" if [ "$ARCH_NAME" == "x86_64" ]; then ./Configure darwin64-${ARCH}-cc --openssldir="${PREFIX}" --prefix="${PREFIX}" - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -mios-simulator-version-min=${DEPLOYMENT_VERSION} !" "Makefile" + sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -mios-simulator-version-min=${DEPLOYMENT_VERSION} -fembed-bitcode !" "Makefile" else ./Configure iphoneos-cross -no-asm --openssldir="${PREFIX}" - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -miphoneos-version-min=${DEPLOYMENT_VERSION} !" "Makefile" + sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -miphoneos-version-min=${DEPLOYMENT_VERSION} -fembed-bitcode !" "Makefile" perl -i -pe 's|static volatile sig_atomic_t intr_signal|static volatile int intr_signal|' crypto/ui/ui_openssl.c fi } |