3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-12 23:28:16 +02:00
overte-lubosz/cmake/templates/launch-c.in
2018-10-10 14:39:57 -07:00

12 lines
389 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
export CCACHE_CPP2=true
export CCACHE_HARDLINK=true
export CCACHE_SLOPPINESS=file_macro,time_macros,include_file_mtime,include_file_ctime,file_stat_matches
exec "${C_LAUNCHER}" "${CMAKE_C_COMPILER}" "$@"