diskimage-builder/elements/base/environment.d/10-ccache.bash
Derek Higgins df78cd3dca Place /usr/lib64/ccache in PATH
ccache wasn't being used on fedora as the symlinks are in lib64.

Change-Id: I810558799dd2382b36b5112e435b74fd5caa8ccf
2014-04-23 01:18:29 +01:00

7 lines
226 B
Bash

# Put ccache in path for known compilers
for CCACHEDIR in "/usr/lib/ccache" "/usr/lib64/ccache" ; do
if ! [[ "$PATH" =~ "$CCACHEDIR" ]] ; then
export PATH=$CCACHEDIR:$PATH
fi
done
export CCACHE_DIR=/tmp/ccache