mirror of
https://github.com/golang/go
synced 2024-09-30 04:34:33 -06:00
c0c396bd6a
The paths may contain spaces. Quote them. Change-Id: I1f67085a1e7c40f60282c2fea7104fb44a01e310 Reviewed-on: https://go-review.googlesource.com/c/go/+/254739 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org>
19 lines
581 B
Bash
Executable File
19 lines
581 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" == "arm64" ]; then
|
|
CLANGARCH="arm64"
|
|
else
|
|
echo "unknown GOARCH=$GOARCH" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec "$CLANG" -arch $CLANGARCH -isysroot "$SDK_PATH" -mios-version-min=10.0 "$@"
|