diff --git a/scripts/ios-configure-glog.sh b/scripts/ios-configure-glog.sh index de9eeea5614b9b..3c05d54df84526 100755 --- a/scripts/ios-configure-glog.sh +++ b/scripts/ios-configure-glog.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -export CC="$(xcrun -find -sdk iphoneos cc) -arch armv7 -isysroot $(xcrun -sdk iphoneos --show-sdk-path)" +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