Date: Wed, 25 Aug 2004 23:55:51 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Maxim Sobolev <sobomax@portaone.com> Cc: portmgr@freebsd.org Subject: Re: ccache support for make buildworld/make release Message-ID: <20040825205551.GE35529@ip.net.ua> In-Reply-To: <412CBC91.3070900@portaone.com> References: <412CBC91.3070900@portaone.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Wed, Aug 25, 2004 at 07:21:37PM +0300, Maxim Sobolev wrote: > Folks, > > I wonder if anyone considered adding ccache support for > buildworld/release targets. ccache is a tool, which wraps around gcc, > allowing to cache object files generated by the compiler to greatly > speed-up compilation of the same code over and over > (http://ccache.samba.org/). > > It acts as a caching pre-processor to C/C++ compilers, using the -E > compiler switch and a hash to detect when a compilation can be satisfied > from cache. This often results in a 5 to 10 times speedup. > > It can benefit both individual developers (less burden to test changes > via full buildworld), and tinderboxes. > > Another interesting use is for package building cluster - it should be > possible to set-up NFS folder shared among all nodes to hold cached > objects for all ports in the tree to reduce turnaround time by the order > of magnitude. > From the URL you provided: : How to use it : : You can use ccache in two ways. The first is just to prefix your : compile commands with "ccache". For example, you could change : the "CC=gcc" line in your Makefile to be "CC=ccache gcc". In our case, it would mean: make buildworld CC="/usr/local/bin/ccache cc" Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBLPzXqRfpzJluFF4RAp+hAJ9jxAkLoFZDjnM5OzcSb14qZz7S3QCggZ8s QwGF1AndfjWXnxsk16Usmqg= =Cfvf -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040825205551.GE35529>
