ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, using the -E compiler switch and a hash to detect when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations. PR: 234971 Approved by: bdrewery Author: Oleg Sidorkin <osidorkin@gmail.com>
10 lines
263 B
Bash
10 lines
263 B
Bash
#!/bin/sh
|
|
|
|
[ "${0##*/}" = "ccache" ] &&
|
|
printf "Please, use one of the compiler links in\n%%PREFIX%%/%%CCLINKDIR%%/world\nto invoke ccache\n" >&2 &&
|
|
exit 1
|
|
|
|
unset CCACHE_PATH
|
|
export CCACHE_COMPILERCHECK=content
|
|
exec %%PREFIX%%/%%CCLINKDIR%%/${0##*/} "$@"
|