mirror of
https://github.com/QuasarApp/CMake.git
synced 2025-04-26 09:44:41 +00:00
12 lines
255 B
Bash
12 lines
255 B
Bash
|
#!/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
|
||
|
|
||
|
${CCCACHE_EXPORTS}
|
||
|
|
||
|
exec "${CCACHE_PROGRAM}" "${CMAKE_C_COMPILER}" "$@"
|