mirror of
				https://github.com/golang/go.git
				synced 2025-11-04 10:40:57 +00:00 
			
		
		
		
	Xcode 8.0 has been donen't support the iOS 5 anymore Fixes #18390. Change-Id: Icc97e09424780c610a8fe173d0cf461d76b06da4 Reviewed-on: https://go-review.googlesource.com/34673 Reviewed-by: David Crawshaw <crawshaw@golang.org>
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			629 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			629 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
# This uses the latest available iOS SDK, which is recommended.
 | 
						|
# To select a specific SDK, run 'xcodebuild -showsdks'
 | 
						|
# to see the available SDKs and replace iphoneos with one of them.
 | 
						|
SDK=iphoneos
 | 
						|
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
 | 
						|
export IPHONEOS_DEPLOYMENT_TARGET=5.1
 | 
						|
# cmd/cgo doesn't support llvm-gcc-4.2, so we have to use clang.
 | 
						|
CLANG=`xcrun --sdk $SDK --find clang`
 | 
						|
 | 
						|
if [ "$GOARCH" == "arm" ]; then
 | 
						|
	CLANGARCH="armv7"
 | 
						|
elif [ "$GOARCH" == "arm64" ]; then
 | 
						|
	CLANGARCH="arm64"
 | 
						|
else
 | 
						|
	echo "unknown GOARCH=$GOARCH" >&2
 | 
						|
	exit 1
 | 
						|
fi
 | 
						|
 | 
						|
exec $CLANG -arch $CLANGARCH -isysroot $SDK_PATH -mios-version-min=6.0 "$@"
 |