|  About Me  |  Blogs  |  Photos  |  Publications  |  Resume  | 

Compiler cache

Install ccache to enable compiler cache and reduce compilation time:

$ emerge ccache

Enable it in make.conf

FEATURES="ccache"
CCACHE_SIZE="2G"

Check stats with:

ccache -s

For some reason $CCACHE_DIR variable is set differently for portage and users, so I wasn’t getting anything when I checked stats as root. After I export CCACHE_DIR=/var/tmp/ccache it worked.

Leave a Reply

You must be logged in to post a comment.