diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-06-08 13:11:27 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-06-11 17:05:38 +0200 |
commit | 4f514579fad9a133dce6509da3a8ff637b985309 (patch) | |
tree | 1158c3e961af37cd2911a6467483cc1943234096 | |
parent | 2144d7b5ac3affd3b902e5b5fa28dbf596bdece5 (diff) |
[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 :(
-rw-r--r-- | scripts/launch-c-xcode.in | 2 | ||||
-rw-r--r-- | scripts/launch-cxx-xcode.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/launch-c-xcode.in b/scripts/launch-c-xcode.in index 77a0c8aca..837e1738e 100644 --- a/scripts/launch-c-xcode.in +++ b/scripts/launch-c-xcode.in @@ -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" "$@" diff --git a/scripts/launch-cxx-xcode.in b/scripts/launch-cxx-xcode.in index 7d4639ce6..9532b6f9a 100644 --- a/scripts/launch-cxx-xcode.in +++ b/scripts/launch-cxx-xcode.in @@ -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++" "$@" |