diff options
author | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2015-10-27 16:24:52 -0700 |
---|---|---|
committer | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2015-10-27 16:26:08 -0700 |
commit | a21486d7afcae38c1429f6e21b018a15a23149ee (patch) | |
tree | 13c90857e38b707c3daddb3cbd56b8383f014e62 /scripts | |
parent | 26b78229f7b09fa3f358c0ab096d6d9504ca56ba (diff) |
Ability to disable bitcode
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/include.sh/build-dep.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/include.sh/build-dep.sh b/scripts/include.sh/build-dep.sh index 91232540..9626cf10 100755 --- a/scripts/include.sh/build-dep.sh +++ b/scripts/include.sh/build-dep.sh @@ -65,10 +65,16 @@ build_git_ios() git checkout -q $rev echo building $name $version - $rev + BITCODE_FLAGS="-fembed-bitcode" + if test "x$NOBITCODE" != x ; then + BITCODE_FLAGS="" + fi + XCTOOL_OTHERFLAGS='$(inherited)' + XCTOOL_OTHERFLAGS="$XCTOOL_OTHERFLAGS $BITCODE_FLAGS" cd "$srcdir/$name/build-mac" sdk="iphoneos$sdkversion" echo building $sdk - xctool -project "$xcode_project" -sdk $sdk -scheme "$xcode_target" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$devicearchs" IPHONEOS_DEPLOYMENT_TARGET="$sdkminversion" OTHER_CFLAGS='$(inherited) -fembed-bitcode' + xctool -project "$xcode_project" -sdk $sdk -scheme "$xcode_target" -configuration Release SYMROOT="$tmpdir/bin" OBJROOT="$tmpdir/obj" ARCHS="$devicearchs" IPHONEOS_DEPLOYMENT_TARGET="$sdkminversion" OTHER_CFLAGS="$XCTOOL_OTHERFLAGS" if test x$? != x0 ; then echo failed exit 1 |