Switch xcode support to Makefile-based approach

This commit is contained in:
2026-02-01 17:28:01 -05:00
parent e0f126cc3e
commit 7a5490396c
5 changed files with 68 additions and 27 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
MIN_VERSION=26.0
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
CLANG=`xcrun --sdk $SDK --find clang`
if [ "$SDK" = "iphoneos" ]; then
export TARGET="-target $CARCH-apple-ios$MIN_VERSION"
elif [ "$SDK" = "iphonesimulator" ]; then
export TARGET="-target $CARCH-apple-ios$MIN_VERSION-simulator"
fi
if [ "$GOARCH" == "amd64" ]; then
CARCH="x86_64"
elif [ "$GOARCH" == "arm64" ]; then
CARCH="arm64"
fi
exec $CLANG -arch $CARCH $TARGET -isysroot $SDK_PATH -mios-version-min=$MIN_VERSION "$@"