summaryrefslogtreecommitdiffstats
path: root/build/macosx/xcrun
diff options
context:
space:
mode:
Diffstat (limited to 'build/macosx/xcrun')
-rwxr-xr-xbuild/macosx/xcrun10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/macosx/xcrun b/build/macosx/xcrun
new file mode 100755
index 0000000000..52edb12d7b
--- /dev/null
+++ b/build/macosx/xcrun
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+case "$*" in
+"--show-sdk-path --sdk iphoneos"|"--show-sdk-path -sdk iphoneos"|"--show-sdk-path --sdk iphonesimulator"|"--show-sdk-path -sdk iphonesimulator")
+ ;;
+*)
+ echo We only expect this to be executed by third_party/rust/cc/src/lib.rs or rustc when targetting iOS >&2
+ exit 1
+esac
+echo $IPHONEOS_SDK_DIR