Commit b90daeac authored by Felix Paul Kühne's avatar Felix Paul Kühne

iOS: add bitcode option

parent f36f4152
...@@ -13,6 +13,7 @@ TVOS=no ...@@ -13,6 +13,7 @@ TVOS=no
OSSTYLE=iPhone OSSTYLE=iPhone
OSVERSIONMINCFLAG=miphoneos-version-min OSVERSIONMINCFLAG=miphoneos-version-min
OSVERSIONMINLDFLAG=ios_version_min OSVERSIONMINLDFLAG=ios_version_min
BITCODE=no
CORE_COUNT=`sysctl -n machdep.cpu.core_count` CORE_COUNT=`sysctl -n machdep.cpu.core_count`
let MAKE_JOBS=$CORE_COUNT+1 let MAKE_JOBS=$CORE_COUNT+1
...@@ -30,6 +31,7 @@ OPTIONS ...@@ -30,6 +31,7 @@ OPTIONS
-v Enable verbose command-line output -v Enable verbose command-line output
-t Build for tvOS -t Build for tvOS
-w Build a limited stack of non-scary libraries only -w Build a limited stack of non-scary libraries only
-b Enable bitcode
EOF EOF
} }
...@@ -50,7 +52,7 @@ info() ...@@ -50,7 +52,7 @@ info()
echo "[${blue}info${normal}] $1" echo "[${blue}info${normal}] $1"
} }
while getopts "hvwdstk:a:" OPTION while getopts "hvbwdstk:a:" OPTION
do do
case $OPTION in case $OPTION in
h) h)
...@@ -69,6 +71,9 @@ do ...@@ -69,6 +71,9 @@ do
w) w)
SCARY=no SCARY=no
;; ;;
b)
BITCODE=yes
;;
k) k)
SDK_VERSION=$OPTARG SDK_VERSION=$OPTARG
;; ;;
...@@ -77,6 +82,7 @@ do ...@@ -77,6 +82,7 @@ do
;; ;;
t) t)
TVOS=yes TVOS=yes
BITCODE=yes
SDK_VERSION=`xcrun --sdk appletvos --show-sdk-version` SDK_VERSION=`xcrun --sdk appletvos --show-sdk-version`
OSVERSIONMINCFLAG=mtvos-version-min OSVERSIONMINCFLAG=mtvos-version-min
OSVERSIONMINLDFLAG=tvos_version_min OSVERSIONMINLDFLAG=tvos_version_min
...@@ -183,7 +189,7 @@ else ...@@ -183,7 +189,7 @@ else
CFLAGS+=" -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}" CFLAGS+=" -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
fi fi
if [ "$TVOS" = "yes" ]; then if [ "$BITCODE" = "yes" ]; then
CFLAGS+=" -fembed-bitcode" CFLAGS+=" -fembed-bitcode"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment