664 |
fi |
fi |
665 |
} |
} |
666 |
|
|
667 |
|
setup_icecc_environment() |
668 |
|
{ |
669 |
|
if [ -x /usr/bin/icecc ] |
670 |
|
then |
671 |
|
echo -e "${COLBLUE}---${COLGREEN} Using IceCC for compilation ...${COLDEFAULT}" |
672 |
|
export PATH=/usr/$(mlibdir)/icecc/bin:${PATH} || die "icecc: could not export new $PATH" |
673 |
|
fi |
674 |
|
} |
675 |
|
|
676 |
setup_ccache_environment() |
setup_ccache_environment() |
677 |
{ |
{ |
678 |
if [ -x /usr/bin/ccache ] |
if [ -x /usr/bin/ccache ] |
679 |
then |
then |
680 |
|
mqueryfeature "icecream" && export CCACHE_PREFIX=icecc |
681 |
|
|
682 |
echo -e "${COLBLUE}---${COLGREEN} Using CCache for compilation ...${COLDEFAULT}" |
echo -e "${COLBLUE}---${COLGREEN} Using CCache for compilation ...${COLDEFAULT}" |
683 |
export PATH=/usr/$(mlibdir)/ccache/bin:${PATH} || die "ccache: could not export new $PATH" |
export PATH=/usr/$(mlibdir)/ccache/bin:${PATH} || die "ccache: could not export new $PATH" |
684 |
fi |
fi |