forked from mirrors/gecko-dev
Bug 1834947 - Divert xcrun so that it outputs the build system's chosen iOS SDK. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D179033
This commit is contained in:
parent
434c5a4b41
commit
7e3d0bd409
2 changed files with 13 additions and 0 deletions
10
build/macosx/xcrun
Executable file
10
build/macosx/xcrun
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
case "$*" in
|
||||
"--show-sdk-path --sdk iphoneos"|"--show-sdk-path -sdk iphoneos")
|
||||
;;
|
||||
*)
|
||||
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
|
||||
|
|
@ -254,6 +254,9 @@ export COREAUDIO_SDK_PATH=$(MACOS_SDK_DIR)
|
|||
endif
|
||||
ifdef IPHONEOS_SDK_DIR
|
||||
export COREAUDIO_SDK_PATH=$(IPHONEOS_SDK_DIR)
|
||||
# export for build/macosx/xcrun
|
||||
export IPHONEOS_SDK_DIR
|
||||
PATH := $(topsrcdir)/build/macosx:$(PATH)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue