* Add support for ccache To benefit from ccache, first install ccache (for instance with brew install ccache on macOS). On my machine a clean build takes ~5 minutes the first time. A second clean build with ccache enabled takes 34 seconds. * Enable more aggressive caching
10 lines
214 B
Bash
10 lines
214 B
Bash
#!/bin/sh
|
|
|
|
if [[ "$1" = "${CMAKE_C_COMPILER}" ]]; then
|
|
shift
|
|
fi
|
|
|
|
export CCACHE_CPP2=true
|
|
export CCACHE_SLOPPINESS=file_macro,time_macros,locale,file_stat_matches
|
|
exec "${C_LAUNCHER}" "${CMAKE_C_COMPILER}" "$@"
|