Date: Tue, 15 Nov 2005 18:03:47 -0500 From: Nicolas Blais <nb_root@videotron.ca> To: freebsd-current@freebsd.org Cc: Steve Hodgson <steve@acidy.com>, Jens Schweikhardt <schweikh@schweikhardt.net> Subject: Re: Using ccache for build{world, kernel} Message-ID: <200511151803.48167.nb_root@videotron.ca> In-Reply-To: <437A67F8.3070109@acidy.com> References: <200511141702.45491.nb_root@videotron.ca> <20051115224212.GF1783@schweikhardt.net> <437A67F8.3070109@acidy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart8997729.tgPtsUXYvy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > I agree that that is an option, and here is another. I'm not going to > suggest which is the better solution, that is probably up to the > maintainer. > > 1. Create a new file /usr/local/bin/ccache-world: > > #!/bin/sh > export CCACHE_NOHASH_SIZE_MTIME=3D1 > /usr/local/bin/ccache $@ > > 2. Change the instructions in the ccache port in line with my last > email, removing references to CCACHE_PATH and changing the PATH > variable. Edit /etc/make.conf: > > .if !defined(NOCCACHE) > .if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} > CC=3D/usr/local/bin/ccache-world cc > CXX=3D/usr/local/bin/ccache-world c++ > .else > CC=3D/usr/local/bin/ccache cc > CXX=3D/usr/local/bin/ccache c++ > .endif > .endif > > Though this does seem a rather nasty solution. But it doesn't require > users to change their habits to use ccache for kernel/world builds. > > Steve > > (this has been tested this time!) Tested and works as suggested! =2D-=20 =46reeBSD 7.0-CURRENT #0: Tue Nov 15 06:21:56 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://www.clkroot.net/security/nb_root.asc --nextPart8997729.tgPtsUXYvy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDemlUz38ton5LGeIRAgLnAKCrJx9L3PKNWw+91f4sYlaZ6cBFuACfUxal llefSH5QogSudcY7r/3CXgo= =h2Um -----END PGP SIGNATURE----- --nextPart8997729.tgPtsUXYvy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511151803.48167.nb_root>