summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-06-08 13:11:27 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-06-11 16:49:56 +0200
commit0a3f3297ea3d0352f7649c7a783252803635a2e3 (patch)
treefee164cb64ea36ac92631b3246c4814829078fb8
parent6c6257cf70f53ba082918da7ffa1c95ebcde87c1 (diff)
downloadqtlocation-mapboxgl-0a3f3297ea3d0352f7649c7a783252803635a2e3.tar.gz
[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.in2
-rw-r--r--scripts/launch-cxx-xcode.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/launch-c-xcode.in b/scripts/launch-c-xcode.in
index 77a0c8aca3..837e1738e8 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 7d4639ce6d..9532b6f9af 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++" "$@"