From kde-commits Sun Jul 08 10:14:06 2012 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sun, 08 Jul 2012 10:14:06 +0000 To: kde-commits Subject: icecream/doc Message-Id: <20120708101406.168A1AC7A9 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=134174268412746 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++