diff options
author | Juha Alanen <juha.alanen@mapbox.com> | 2020-02-04 13:58:19 +0200 |
---|---|---|
committer | Juha Alanen <juha.alanen@mapbox.com> | 2020-02-14 12:01:52 +0200 |
commit | 7a9f8027ac1aa93c5e073d4fe138414059125fa8 (patch) | |
tree | 8067820a28bc1303c7f0d6df462fb5ba146623b3 /scripts/ci/ccache-c.in | |
parent | af7428254b0c65a934f05bd181580148d3a2d362 (diff) | |
download | qtlocation-mapboxgl-7a9f8027ac1aa93c5e073d4fe138414059125fa8.tar.gz |
[build] Enable ccache for Xcode iOS builds
Diffstat (limited to 'scripts/ci/ccache-c.in')
-rw-r--r-- | scripts/ci/ccache-c.in | 9 |
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}" "$@" |