According to /usr/local/share/doc/ccache/ccache-howto-freebsd.txt[0], to make devel/ccache work with ports you just need to add WITH_CCACHE_BUILD=yes to /etc/make.conf[1]. However, it doesn't appear to be working:
That's after building nearly 200 ports with Poudriere, which has ccache enabled:
What am I missing? Thanks.
[0] /usr/local/share/doc/ccache/ccache-howto-freebsd.txt
[1] /etc/make.conf
ccache -s
Code:
cache directory /root/.ccache
cache hit (direct) 0
cache hit (preprocessed) 0
cache miss 0
files in cache 0
cache size 0 Kbytes
max cache size 1.0 Gbytes
That's after building nearly 200 ports with Poudriere, which has ccache enabled:
grep CCACHE /usr/local/etc/poudriere.conf
Code:
CCACHE_DIR=/var/cache/ccache
ls /var/cache/
Code:
pkg
What am I missing? Thanks.
[0] /usr/local/share/doc/ccache/ccache-howto-freebsd.txt
ccache said:To use ccache for ports, just add WITH_CCACHE_BUILD=yes to
/etc/make.conf. The rest of this guide is for building
/usr/src and other checkouts.
[1] /etc/make.conf
Code:
WITH_CCACHE_BUILD=yes
CCACHE_CPP2=1