diff options
Diffstat (limited to 'cnf/make.conf')
-rw-r--r-- | cnf/make.conf | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/cnf/make.conf b/cnf/make.conf index 5be65cc3b..7bff547ea 100644 --- a/cnf/make.conf +++ b/cnf/make.conf @@ -246,7 +246,9 @@ # generates digests only when the 'digest' feature is enabled). # 'buildpkg' causes binary packages to be created of all packages that # are being merged. -# 'ccache' enables ccache support via CC. +# 'ccache' enable support for the dev-util/ccache package, which can +# noticably decrease the time needed to remerge previously built +# packages. # 'confcache' enable confcache support; speeds up autotool based configure # calls # 'collision-protect' @@ -298,16 +300,25 @@ # 'usersandbox' enables sandboxing while portage is running under userpriv. #FEATURES="sandbox buildpkg ccache distcc userpriv usersandbox notitles noclean noauto cvs keeptemp keepwork" #FEATURES="sandbox ccache distcc distlocks" + +# CCACHE_SIZE and CCACHE_DIR are used to control the behavior of ccache, and +# and are only used if "ccache" is in FEATURES. +# +# CCACHE_SIZE sets the space limitations for ccache. The default size is +# "2G", or 2 gigabytes. Units are specified with 'G', 'M', or 'K'. # -# CCACHE_SIZE sets the space use limitations for ccache. The default size is -# 2G, and will be set if not defined otherwise and ccache is in features. -# Portage will set the default ccache dir if it is not present in the -# user's environment, for userpriv it sets: ${PORTAGE_TMPDIR}/ccache -# (/var/tmp/ccache), and for regular use the default is /root/.ccache. -# Sizes are specified with 'G' 'M' or 'K'. -# '2G' for 2 gigabytes, '2048M' for 2048 megabytes (same as 2G). #CCACHE_SIZE="512M" # +# CCACHE_DIR sets the ccache path. If not specified, portage will default +# to "${PORTAGE_TMPDIR}/ccache". +# +# Note that to display ccache statistics outside of portage, you must +# remember to give the correct path to the cache. +# +# $ CCACHE_DIR=/var/tmp/ccache ccache -s +# +#CCACHE_DIR="${PORTAGE_TMPDIR}/ccache" + # DISTCC_DIR sets the temporary space used by distcc. #DISTCC_DIR="${PORTAGE_TMPDIR}/.distcc" |