summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-06-30 12:49:47 -0700
committerKonstantin Käfer <mail@kkaefer.com>2017-07-13 15:11:12 +0200
commit6ca7b28e60afdc72d888b4c96fff509568ee3bd5 (patch)
tree4389f21696583180fe223558d9725c7b7f45ff54 /scripts
parent92354bdc25d7857b5142da35806a3b2e7bad2b4e (diff)
downloadqtlocation-mapboxgl-6ca7b28e60afdc72d888b4c96fff509568ee3bd5.tar.gz
[build] add ccache + Circle CI caching
Diffstat (limited to 'scripts')
-rw-r--r--scripts/launch-c.in10
-rw-r--r--scripts/launch-cxx.in10
2 files changed, 20 insertions, 0 deletions
diff --git a/scripts/launch-c.in b/scripts/launch-c.in
new file mode 100644
index 0000000000..6c6c9180bc
--- /dev/null
+++ b/scripts/launch-c.in
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Xcode generator doesn't include the compiler as the
+# first argument, Ninja and Makefiles do. Handle both cases.
+if [ "$1" = "${CMAKE_C_COMPILER}" ] ; then
+ shift
+fi
+
+export CCACHE_CPP2=true
+exec "${C_LAUNCHER}" "${CMAKE_C_COMPILER}" "$@"
diff --git a/scripts/launch-cxx.in b/scripts/launch-cxx.in
new file mode 100644
index 0000000000..23f107ce48
--- /dev/null
+++ b/scripts/launch-cxx.in
@@ -0,0 +1,10 @@
+#!/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