mirror of
https://github.com/golang/go.git
synced 2025-10-25 13:54:14 +00:00
11 lines
443 B
Bash
11 lines
443 B
Bash
|
|
#!/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`
|
||
|
|
exec $CLANG -arch armv7 -isysroot $SDK_PATH "$@"
|