Files
filament/build/launch-c.in
Romain Guy 0473da9f05 Add support for ccache (#2148)
* 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
2020-02-20 11:36:36 +09:00

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}" "$@"