SVN commit 1304587 by lunakl: update ccache instructions to use CCACHE_PREFIX M +14 -8 man-icecream.7.docbook --- trunk/icecream/doc/man-icecream.7.docbook #1304586:1304587 @@ -146,18 +146,24 @@ How to combine icecream with ccache -The easiest way to use ccache with icecream is putting the symlink -masquerades into /opt/icream/bin and putting small wrapper scripts in -/opt/ccache/bin +The easiest way to use ccache with icecream is to set CCACHE_PREFIX +to icecc (the actual icecream client wrapper) - cat /opt/ccache/bin/g++: + export CCACHE_PREFIX=icecc + + - #! /bin/sh +This will make ccache prefix any compilation command it needs to do with icecc, +making it use icecream for the compilation (but not for preprocessing alone). - export CCACHE_PATH=/opt/icecream/bin - export PATH=/opt/icecream/bin:/usr/bin:$PATH - ccache g++ "$@" +To actually use ccache, the mechanism is the same like with using icecream alone. +Since ccache does not provide any symlinks in /opt/ccache/bin, you can create them manually: + + +mkdir /opt/ccache/bin +ln -s /usr/bin/ccache /opt/ccache/bin/gcc +ln -s /usr/bin/ccache /opt/ccache/bin/g++