[build] Xcode 10 no longer exposes DEVELOPER_DIR to the compiler launcher

We'll have to extract the location of Xcode's developer dir from $PATH :(
This commit is contained in:
Konstantin Käfer
2018-06-08 13:11:27 +02:00
parent 0b883fdbfd
commit 7a76eb23ea
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
export CCACHE_CPP2=true
exec "@C_LAUNCHER@" "${DEVELOPER_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" "$@"
exec "@C_LAUNCHER@" "${PATH%%/Contents/Developer/*}/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" "$@"

View File

@@ -1,4 +1,4 @@
#!/bin/sh
export CCACHE_CPP2=true
exec "@CXX_LAUNCHER@" "${DEVELOPER_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" "$@"
exec "@CXX_LAUNCHER@" "${PATH%%/Contents/Developer/*}/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" "$@"