--- trunk/mage/usr/lib/mage/smage2.functions.sh 2013/08/14 07:46:36 2158 +++ trunk/mage/usr/lib/mage/smage2.functions.sh 2013/08/14 07:55:29 2159 @@ -664,10 +664,21 @@ fi } +setup_icecc_environment() +{ + if [ -x /usr/bin/icecc ] + then + echo -e "${COLBLUE}---${COLGREEN} Using IceCC for compilation ...${COLDEFAULT}" + export PATH=/usr/$(mlibdir)/icecc/bin:${PATH} || die "icecc: could not export new $PATH" + fi +} + setup_ccache_environment() { if [ -x /usr/bin/ccache ] then + mqueryfeature "icecream" && export CCACHE_PREFIX=icecc + echo -e "${COLBLUE}---${COLGREEN} Using CCache for compilation ...${COLDEFAULT}" export PATH=/usr/$(mlibdir)/ccache/bin:${PATH} || die "ccache: could not export new $PATH" fi