Skip to content

Commit 3feac54

Browse files
committed
Merge pull request #553 from libgit2/piet/bitcode
Enable Bitcode
2 parents c0c4188 + c687141 commit 3feac54

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

ObjectiveGitFramework.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,6 @@
19441944
CURRENT_PROJECT_VERSION = 1;
19451945
DYLIB_COMPATIBILITY_VERSION = 1;
19461946
DYLIB_CURRENT_VERSION = 1;
1947-
ENABLE_BITCODE = NO;
19481947
HEADER_SEARCH_PATHS = (
19491948
"$(inherited)",
19501949
"External/libssh2-ios/include/libssh2",
@@ -2009,7 +2008,6 @@
20092008
CURRENT_PROJECT_VERSION = 1;
20102009
DYLIB_COMPATIBILITY_VERSION = 1;
20112010
DYLIB_CURRENT_VERSION = 1;
2012-
ENABLE_BITCODE = NO;
20132011
HEADER_SEARCH_PATHS = (
20142012
"$(inherited)",
20152013
"External/libssh2-ios/include/libssh2",
@@ -2042,7 +2040,6 @@
20422040
CURRENT_PROJECT_VERSION = 1;
20432041
DYLIB_COMPATIBILITY_VERSION = 1;
20442042
DYLIB_CURRENT_VERSION = 1;
2045-
ENABLE_BITCODE = NO;
20462043
HEADER_SEARCH_PATHS = (
20472044
"$(inherited)",
20482045
"External/libssh2-ios/include/libssh2",
@@ -2075,7 +2072,6 @@
20752072
CURRENT_PROJECT_VERSION = 1;
20762073
DYLIB_COMPATIBILITY_VERSION = 1;
20772074
DYLIB_CURRENT_VERSION = 1;
2078-
ENABLE_BITCODE = NO;
20792075
HEADER_SEARCH_PATHS = (
20802076
"$(inherited)",
20812077
"External/libssh2-ios/include/libssh2",

script/update_libgit2_ios

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function build_libgit2 ()
5151
-DBUILD_CLAR:BOOL=OFF \
5252
-DTHREADSAFE:BOOL=ON \
5353
-DCURL:BOOL=OFF \
54+
-DCMAKE_C_FLAGS:STRING="-fembed-bitcode" \
5455
"${SYS_ROOT}" \
5556
-DCMAKE_OSX_ARCHITECTURES:STRING="${ARCH}" \
5657
.. >> "${LOG}" 2>&1

script/update_libssh2_ios

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function build_ssh2 ()
2424
cp -R "${ROOT_PATH}/External/libssh2" "${ROOT_PATH}/External/libssh2-ios/src/"
2525
pushd "${ROOT_PATH}/External/libssh2-ios/src/libssh2" > /dev/null
2626

27-
export CFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
28-
export CPPFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
27+
export CFLAGS="-arch ${ARCH} -fembed-bitcode -pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
28+
export CPPFLAGS="-arch ${ARCH} -fembed-bitcode -pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
2929

3030
mkdir -p "${ROOT_PATH}/External/libssh2-ios/bin/${SDKNAME}-${ARCH}.sdk"
3131
LOG="${ROOT_PATH}/External/libssh2-ios/bin/${SDKNAME}-${ARCH}.sdk/build-libssh2.log"

script/update_libssl_ios

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function build_ssl ()
4343
echo "$LOG"
4444

4545
./Configure ${HOST} ${CONFIG} --openssldir="/tmp/openssl-${ARCH}" >> "${LOG}" 2>&1
46-
perl -i -pe "s|^CC= gcc|CC= ${CLANG} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} -arch ${ARCH} |g" Makefile >> "${LOG}" 2>&1
46+
perl -i -pe "s|^CC= gcc|CC= ${CLANG} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} -arch ${ARCH} -fembed-bitcode |g" Makefile >> "${LOG}" 2>&1
4747
perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${SDKROOT} \$1|g" Makefile >> "${LOG}" 2>&1
4848
make >> "${LOG}" 2>&1
4949

0 commit comments

Comments
 (0)