summaryrefslogtreecommitdiff
path: root/scripts/launch-c-xcode.in
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-07-17 15:22:09 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-07-17 15:22:30 +0200
commit489fae67f09ef9cedb51926f596d2a4af8f0731e (patch)
treefe15ddf81e13edb844c8aa9eb7237b03db9dcdf9 /scripts/launch-c-xcode.in
parentfdfd5f91f51f7185f731783ad8b2b4ff9c3e2f90 (diff)
downloadqtlocation-mapboxgl-upstream/9519-xcode-ccache-compiler.tar.gz
[build] make Xcode use the correct compiler when it is installed in a non-standard locationupstream/9519-xcode-ccache-compiler
Diffstat (limited to 'scripts/launch-c-xcode.in')
-rw-r--r--scripts/launch-c-xcode.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/launch-c-xcode.in b/scripts/launch-c-xcode.in
new file mode 100644
index 0000000000..77a0c8aca3
--- /dev/null
+++ b/scripts/launch-c-xcode.in
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+export CCACHE_CPP2=true
+exec "@C_LAUNCHER@" "${DEVELOPER_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" "$@"