ccache
Compiler cache
Ccache is a compiler cache used to speed up recompilation by caching previous compilations. see the website of ccache for more informations.
To install Ccache, use the following steps:
1. Install package
sudo apt install -y ccache
2. Update symlinks
sudo /usr/sbin/update-ccache-symlinks
3. Prepend ccache into the PATH
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
4. Source bashrc to test the new PATH
source ~/.bashrc && echo $PATH
The message on terminal should look like this:
/usr/lib/ccache:/usr/local/cuda-5.5/bin/:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/game
5. Test g++/gcc. By typing
which g++ gcc
will return the message
''/usr/lib/ccache/g++ /usr/lib/ccache/gcc''
ccache.txt · Last modified: by jeferson