ccache/ccache.sh.in
Ville Skyttä f4ba2cd223 - Minor profile.d script performance improvements.
- Fix hardcoded /var/cache/ccache in profile.d scripts.
2009-12-19 11:44:52 +00:00

15 lines
546 B
Bash

# Use ccache by default. Users who don't want that can set the CCACHE_DISABLE
# environment variable in their personal profile.
pathmunge @LIBDIR@/ccache
# If @CACHEDIR@ is writable, use a shared cache there. Users who don't
# want that even if they have that write permission can set the CCACHE_DIR
# and unset the CCACHE_UMASK environment variables in their personal profile.
if [ -z "$CCACHE_DIR" ] && [ -w @CACHEDIR@ ] && [ -d @CACHEDIR@ ] ; then
export CCACHE_DIR=@CACHEDIR@
export CCACHE_UMASK=002
unset CCACHE_HARDLINK
fi