summaryrefslogtreecommitdiff
path: root/scripts/launch-cxx.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-cxx.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-cxx.in')
-rw-r--r--scripts/launch-cxx.in8
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/launch-cxx.in b/scripts/launch-cxx.in
index 23f107ce48..46671c1c64 100644
--- a/scripts/launch-cxx.in
+++ b/scripts/launch-cxx.in
@@ -1,10 +1,4 @@
#!/bin/sh
-# Xcode generator doesn't include the compiler as the
-# first argument, Ninja and Makefiles do. Handle both cases.
-if [ "$1" = "${CMAKE_CXX_COMPILER}" ] ; then
- shift
-fi
-
export CCACHE_CPP2=true
-exec "${CXX_LAUNCHER}" "${CMAKE_CXX_COMPILER}" "$@" \ No newline at end of file
+exec "@CXX_LAUNCHER@" "$@"