summaryrefslogtreecommitdiff
path: root/scripts/ci/ccache-c.in
diff options
context:
space:
mode:
authorArtem Pavlenko <artem@mapnik.org>2020-02-14 16:56:46 +0000
committerArtem Pavlenko <artem@mapnik.org>2020-02-14 16:56:46 +0000
commit145c053a02d918d74002ea690dac398ee588a374 (patch)
treec645ffaec12822f0668858181248cd7365fc4e20 /scripts/ci/ccache-c.in
parent37a4660ca367f141b9e0dedf3932c74f0ee0c920 (diff)
parent59294aaef333bdd455bd13d6bab6fca730379b52 (diff)
downloadqtlocation-mapboxgl-145c053a02d918d74002ea690dac398ee588a374.tar.gz
Merge branch 'master' into galinelle_setStyle++_updatedupstream/galinelle_setStyle++_updated
Diffstat (limited to 'scripts/ci/ccache-c.in')
-rw-r--r--scripts/ci/ccache-c.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/ci/ccache-c.in b/scripts/ci/ccache-c.in
new file mode 100644
index 0000000000..f75d456e5d
--- /dev/null
+++ b/scripts/ci/ccache-c.in
@@ -0,0 +1,9 @@
+#!/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
+
+exec "${C_LAUNCHER}" "${CMAKE_C_COMPILER}" "$@"