CMake/ccahe_cxx_launcher.sh.in

12 lines
259 B
Bash
Raw Normal View History

2023-04-15 13:47:54 +02:00
#!/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
${CCCACHE_EXPORTS}
exec "${CCACHE_PROGRAM}" "${CMAKE_CXX_COMPILER}" "$@"