ccache/ccache.sh.in
Ville Skyttä 28a127a746 - Update to 3.0pre0, all old patches applied/superseded upstream. Note: old
caches will no longer be used, see NEWS for details.
- Don't use "pathmunge" in the profile.d sh script to work around #548960.
- Patch to avoid stripping the binary during build.
- Add auto-symlink support for gcc44(-c++) and msp430-gcc.
- Run test suite during build.
- Update description.
2010-03-01 22:38:44 +00:00

17 lines
620 B
Bash

# Use ccache by default. Users who don't want that can set the CCACHE_DISABLE
# environment variable in their personal profile.
if ! echo "$PATH" | grep -Eq '(^|:)@LIBDIR@/ccache($|:)' ; then
PATH="@LIBDIR@/ccache:$PATH"
fi
# 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