diskimage-builder/elements/base/environment.d/10-ccache.bash
Clint Byrum f6cc6bb185 Use ccache to cache all compiles between builds.
Many python extensions are built from source each time an image is
built. Repeating these is wasteful, so ccache is employed to eliminate
that waste. A cache dir outside the chroot is used to speed up
subsequent image builds.

Change-Id: Ib73563ddbe5f3be7454bfc54ab91cedb559a1304
2013-07-09 18:18:19 -07:00

5 lines
159 B
Bash

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