ccache

You may want to use ccache to speed-up re-compiling after cleaning.

The best option is to install it in your system (ie, outside the conda environment).

Download and extract ccache`.

wget http://samba.org/ftp/ccache/ccache-3.2.2.tar.bz2
tar xvjf ccache-3.2.2.tar.bz2
cd ccache-3.2.2

Configure:

sudo mkdir -p /usr/local/ccache/3.2.2 # for example
./configure --prefix=/usr/local/ccache/3.2.2

Build and install:

make
sudo make install

Create symbolic links:

for COMP in gcc g++ cc c++
do
    sudo ln -s /usr/local/ccache/3.2.2/bin/ccache /usr/local/ccache/3.2.2/bin/$COMP
done

And add /usr/local/ccache/3.2.2/bin to your PATH.

And finally, here is an example of ccache configuration file, in $HOME/.ccache/ccache.conf:

max_size = 5.0G
cache_dir = /local/froger/ccache