Skip to content

Commit

Permalink
remove broken iOS builds (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengroat authored and aquynh committed Jul 31, 2019
1 parent 3053e64 commit ca6cb23
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ OPTIONS:
cross-win64 Cross-compile Windows 64-bit binary with MinGW
cross-android_arm Cross-compile for Android Arm
cross-android_arm64 Cross-compile for Android Arm64
ios Cross-compile for all iOS devices (armv7 + armv7s + arm64)
ios_armv7 Cross-compile for iOS ArmV7 (iPod 4, iPad 1/2/3, iPhone4, iPhone4S)
ios_armv7s Cross-compile for iOS ArmV7s (iPad 4, iPhone 5C, iPad mini)
ios_arm64 Cross-compile for iOS Arm64 (iPhone 5S, iPad mini Retina, iPad Air)
linux32 Cross-compile Unicorn on 64-bit Linux to target 32-bit binary
msvc_update_genfiles Generate files for MSVC projects
EOF
Expand All @@ -37,25 +33,6 @@ asan() {
env UNICORN_DEBUG=yes UNICORN_ASAN=yes "${MAKE}" V=1
}

# build iOS lib for all iDevices, or only specific device
build_iOS() {
IOS_SDK=$(xcrun --sdk iphoneos --show-sdk-path)
IOS_CC=$(xcrun --sdk iphoneos -f clang)
IOS_CFLAGS="-Os -Wimplicit -isysroot $IOS_SDK"
IOS_LDFLAGS="-isysroot $IOS_SDK"
if [ -z "$1" ]; then
# build for all iDevices
IOS_ARCHS="armv7 armv7s arm64"
else
IOS_ARCHS="$1"
fi
CC="$IOS_CC" \
CFLAGS="$IOS_CFLAGS" \
LDFLAGS="$IOS_LDFLAGS" \
LIBARCHS="$IOS_ARCHS" \
${MAKE}
}

build_cross() {
[ "$UNAME" = Darwin ] && LIBARCHS="i386 x86_64"
CROSS=$1
Expand Down Expand Up @@ -153,10 +130,6 @@ case "$1" in
"cross-win64" ) build_cross x86_64-w64-mingw32;;
"cross-android_arm" ) CROSS=arm-linux-androideabi ${MAKE};;
"cross-android_arm64" ) CROSS=aarch64-linux-android ${MAKE};;
"ios" ) build_iOS;;
"ios_armv7" ) build_iOS armv7;;
"ios_armv7s" ) build_iOS armv7s;;
"ios_arm64" ) build_iOS arm64;;
"linux32" ) build_linux32;;
"msvc_update_genfiles" ) msvc_update_genfiles;;
* )
Expand Down

0 comments on commit ca6cb23

Please sign in to comment.