mirror of
https://github.com/Drop-OSS/libtailscale.git
synced 2026-01-30 20:55:18 +01:00
updates tailscale/tailscale#15802 This adds the required targets to build for the iOS simulator. We support both ios, ios-sim, and ios-fat framework targets. The sample app is updated to link in the ios-fat version so it can be run on any target device or sim.
14 lines
310 B
Bash
Executable File
14 lines
310 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SDK=iphonesimulator
|
|
PLATFORM=ios-simulator
|
|
|
|
CLANGARCH=arm64
|
|
|
|
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
|
|
|
|
# cmd/cgo doesn't support llvm-gcc-4.2, so we have to use clang.
|
|
CLANG=`xcrun --sdk $SDK --find clang`
|
|
|
|
exec "$CLANG" -arch $CLANGARCH -isysroot "$SDK_PATH" -m${PLATFORM}-version-min=12.0 "$@"
|