summaryrefslogtreecommitdiff
path: root/scripts/launch-cxx.in
blob: 23f107ce48110e4b4871639cd3a6d83526e3ff40 (plain)
1
2
3
4
5
6
7
8
9
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}" "$@"