From owner-freebsd-current@FreeBSD.ORG Wed Aug 25 20:55:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D300216A4CE; Wed, 25 Aug 2004 20:55:52 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1694843D5A; Wed, 25 Aug 2004 20:55:52 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i7PKtmm4006935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 Aug 2004 23:55:48 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i7PKtpvZ060406; Wed, 25 Aug 2004 23:55:51 +0300 (EEST) (envelope-from ru) Date: Wed, 25 Aug 2004 23:55:51 +0300 From: Ruslan Ermilov To: Maxim Sobolev Message-ID: <20040825205551.GE35529@ip.net.ua> References: <412CBC91.3070900@portaone.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SNIs70sCzqvszXB4" Content-Disposition: inline In-Reply-To: <412CBC91.3070900@portaone.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: current@freebsd.org cc: portmgr@freebsd.org Subject: Re: ccache support for make buildworld/make release X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 20:55:53 -0000 --SNIs70sCzqvszXB4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 25, 2004 at 07:21:37PM +0300, Maxim Sobolev wrote: > Folks, >=20 > I wonder if anyone considered adding ccache support for=20 > buildworld/release targets. ccache is a tool, which wraps around gcc,=20 > allowing to cache object files generated by the compiler to greatly=20 > speed-up compilation of the same code over and over=20 > (http://ccache.samba.org/). >=20 > It acts as a caching pre-processor to C/C++ compilers, using the -E=20 > compiler switch and a hash to detect when a compilation can be satisfied= =20 > from cache. This often results in a 5 to 10 times speedup. >=20 > It can benefit both individual developers (less burden to test changes=20 > via full buildworld), and tinderboxes. >=20 > Another interesting use is for package building cluster - it should be=20 > possible to set-up NFS folder shared among all nodes to hold cached=20 > objects for all ports in the tree to reduce turnaround time by the order= =20 > of magnitude. >=20 =46rom the URL you provided: : How to use it = =20 : = =20 : 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=3Dgcc" line in your Makefile to be "CC=3Dccache gcc". In our case, it would mean: make buildworld CC=3D"/usr/local/bin/ccache cc" Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --SNIs70sCzqvszXB4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBLPzXqRfpzJluFF4RAp+hAJ9jxAkLoFZDjnM5OzcSb14qZz7S3QCggZ8s QwGF1AndfjWXnxsk16Usmqg= =Cfvf -----END PGP SIGNATURE----- --SNIs70sCzqvszXB4--