Refactor preprocessing atom types.
[gromacs.git] / admin / ccache-wrapper-cxx.in
blob33308b9a13b4d420c15b47686817b35ee60fcfcd
1 #!/usr/bin/env bash
2 # Set up compiler wrapper used for ccache.
4 # Xcode generator doesn't include the compiler as the
5 # first argument, Ninja and Makefiles do. Handle both cases.
6 if [[ "$1" = "${CMAKE_CXX_COMPILER}" ]] ; then
7 shift
8 fi
10 export CCACHE_CPP2=true
11 exec "${CCACHE_PROGRAM}" "${CMAKE_CXX_COMPILER}" "$@"