From ed828ca14908a90577976dcf14ce1cdffd395d4a Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Tue, 20 Jun 2017 00:07:44 -0400 Subject: [PATCH] Use env to set CC --- scripts/ios-configure-glog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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