ports/devel/ccache4/files/world-ccache.in
Oleg Sidorkin 61e5c612e7 devel/ccache4: new port
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>
2023-03-13 22:04:41 +01:00

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