You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
#!/bin/sh
|
|
|
|
# go/clangwrap.sh
|
|
|
|
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
|
|
CLANG=`xcrun --sdk $SDK --find clang`
|
|
|
|
if [ "$GOARCH" == "amd64" ]; then
|
|
CARCH="x86_64"
|
|
elif [ "$GOARCH" == "arm64" ]; then
|
|
CARCH="arm64"
|
|
fi
|
|
|
|
exec $CLANG -arch $CARCH -isysroot $SDK_PATH -mios-version-min=10.0 "$@"
|