How do I use ccache and ports?

Gary W. Swearingen garys at opusnet.com
Sun Aug 7 14:43:20 GMT 2005


Björn König <bkoenig at cs.tu-berlin.de> writes:

> Robert S wrote:
>
>> A freebsd n00b question.  How do I set ports up to use ccache [...]
>> Presumably I put something into /etc/make.conf.
>
> Yes, add the following lines to /etc/make.conf
>
> CC="/usr/local/libexec/ccache/cc"
> CXX="/usr/local/libexec/ccache/c++"

/usr/ports/devel/ccache/pkg-descr
makes that sound like A Good Thing.

Any ideas why it's not built into cc/c++, or FreeBSD scripts?

Should we all be using it?  Reasons not to?


More information about the freebsd-questions mailing list