Skip to content

Commit a547d9d

Browse files
committed
fix build.sh for 64 bit iOS Simulator
1 parent ad78aec commit a547d9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ build()
5050
# IOS
5151
if [ "$ARCH" == "x86_64" ]; then
5252
# Simulator
53+
export CROSS_TOP="${IPHONESIMULATOR_PLATFORM}/Developer"
54+
export CROSS_SDK="iPhoneSimulator${IOS_SDK_VERSION}.sdk"
5355
./Configure darwin64-x86_64-cc --openssldir="/tmp/openssl-${OPENSSL_VERSION}-${ARCH}" &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"
54-
perl -i -pe "s|^CFLAG= (.*)|CFLAG= -isysroot ${SDK} \$1|g" Makefile
56+
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=${IOS_DEPLOYMENT_VERSION} !" "Makefile"
5557
elif [ "$ARCH" == "i386" ]; then
5658
# Simulator
5759
export CROSS_TOP="${IPHONESIMULATOR_PLATFORM}/Developer"

0 commit comments

Comments
 (0)