diff options
Diffstat (limited to 'build/macosx/xcrun')
-rwxr-xr-x | build/macosx/xcrun | 10 |
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 |