diff --git a/build/macosx/xcrun b/build/macosx/xcrun index 52edb12d7bfc..76aa98407ec8 100755 --- a/build/macosx/xcrun +++ b/build/macosx/xcrun @@ -1,7 +1,7 @@ #!/bin/sh case "$*" in -"--show-sdk-path --sdk iphoneos"|"--show-sdk-path -sdk iphoneos"|"--show-sdk-path --sdk iphonesimulator"|"--show-sdk-path -sdk iphonesimulator") +"--sdk iphoneos --show-sdk-path"|"--show-sdk-path --sdk iphoneos"|"--show-sdk-path -sdk iphoneos"|"--sdk iphonesimulator --show-sdk-path"|"--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