diff options
Diffstat (limited to 'scripts/launch-c.in')
-rw-r--r-- | scripts/launch-c.in | 10 |
1 files changed, 10 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}" "$@" |