Changeset c443576 in subsurface


Ignore:
Timestamp:
Apr 7, 2017, 5:07:21 PM (8 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
35e48a4
Parents:
924370c
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packaging/ios/build.sh

    re1a2074 rc443576  
    7575        declare -x CXX=`xcrun -sdk $SDK_NAME -find clang++`
    7676        declare -x LD=`xcrun -sdk $SDK_NAME -find ld`
    77         declare -x CFLAGS="-arch $ARCH_NAME -isysroot $SDK_DIR -miphoneos-version-min=6.0 -I$SDK_DIR/usr/include"
     77        declare -x CFLAGS="-arch $ARCH_NAME -isysroot $SDK_DIR -miphoneos-version-min=6.0 -I$SDK_DIR/usr/include -fembed-bitcode"
    7878        declare -x CXXFLAGS="$CFLAGS"
    79         declare -x LDFLAGS="$CFLAGS  -lpthread -lc++ -L$SDK_DIR/usr/lib"
     79        declare -x LDFLAGS="$CFLAGS  -lpthread -lc++ -L$SDK_DIR/usr/lib -fembed-bitcode"
    8080
    8181
     
    187187            if [ "$ARCH_NAME" == "x86_64" ]; then
    188188              ./Configure darwin64-${ARCH}-cc --openssldir="${PREFIX}" --prefix="${PREFIX}"
    189               sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -mios-simulator-version-min=${DEPLOYMENT_VERSION} !" "Makefile"
     189              sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -mios-simulator-version-min=${DEPLOYMENT_VERSION} -fembed-bitcode !" "Makefile"
    190190            else
    191191              ./Configure iphoneos-cross -no-asm --openssldir="${PREFIX}"
    192               sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -miphoneos-version-min=${DEPLOYMENT_VERSION} !" "Makefile"
     192              sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -miphoneos-version-min=${DEPLOYMENT_VERSION} -fembed-bitcode !" "Makefile"
    193193              perl -i -pe 's|static volatile sig_atomic_t intr_signal|static volatile int intr_signal|' crypto/ui/ui_openssl.c
    194194            fi
Note: See TracChangeset for help on using the changeset viewer.