diff --git a/scripts/ios-configure-glog.sh b/scripts/ios-configure-glog.sh index 92b7f31d1..5c71d5781 100755 --- a/scripts/ios-configure-glog.sh +++ b/scripts/ios-configure-glog.sh @@ -1,11 +1,11 @@ #!/bin/bash set -e -# Only set when not running in an Xcode context -if [ -z "$ACTION" ] || [ -z "$BUILD_DIR" ]; then - export CC="$(xcrun -find -sdk iphoneos cc) -arch armv7 -isysroot $(xcrun -sdk iphoneos --show-sdk-path)" - export CXX="$CC" -fi +PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}" +CURRENT_ARCH="${CURRENT_ARCH:-armv7}" + +export CC="$(xcrun -find -sdk $PLATFORM_NAME cc) -arch $CURRENT_ARCH -isysroot $(xcrun -sdk $PLATFORM_NAME --show-sdk-path)" +export CXX="$CC" ./configure --host arm-apple-darwin