Use test conversion script from source
[gromacs.git] / admin / ccache-wrapper-c.in
blob7cc68e9d66b639baf05bc7968ca6281e4c4412f8
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_C_COMPILER}" ]] ; then
7 shift
8 fi
10 export CCACHE_CPP2=true
11 exec "${CCACHE_PROGRAM}" "${CMAKE_C_COMPILER}" "$@"