From owner-freebsd-current@freebsd.org  Wed Oct 28 18:43:35 2015
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A932A1FD09
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Wed, 28 Oct 2015 18:43:35 +0000 (UTC)
 (envelope-from bdrewery@FreeBSD.org)
Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org
 [IPv6:2001:1900:2254:206a::50:5])
 by mx1.freebsd.org (Postfix) with ESMTP id 1BF1E1FDD
 for <freebsd-current@freebsd.org>; Wed, 28 Oct 2015 18:43:35 +0000 (UTC)
 (envelope-from bdrewery@FreeBSD.org)
Received: by mailman.ysv.freebsd.org (Postfix)
 id 1B5C8A1FD08; Wed, 28 Oct 2015 18:43:35 +0000 (UTC)
Delivered-To: current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19EF7A1FD07
 for <current@mailman.ysv.freebsd.org>; Wed, 28 Oct 2015 18:43:35 +0000 (UTC)
 (envelope-from bdrewery@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org
 [IPv6:2001:1900:2254:206c::16:87])
 by mx1.freebsd.org (Postfix) with ESMTP id 001161FDC;
 Wed, 28 Oct 2015 18:43:34 +0000 (UTC)
 (envelope-from bdrewery@FreeBSD.org)
Received: from mail.xzibition.com (localhost [IPv6:::1])
 by freefall.freebsd.org (Postfix) with ESMTP id EE93B1637;
 Wed, 28 Oct 2015 18:43:34 +0000 (UTC)
 (envelope-from bdrewery@FreeBSD.org)
Received: from mail.xzibition.com (localhost [172.31.3.2])
 by mail.xzibition.com (Postfix) with ESMTP id AB202166E7;
 Wed, 28 Oct 2015 18:43:34 +0000 (UTC)
X-Virus-Scanned: amavisd-new at mail.xzibition.com
Received: from mail.xzibition.com ([172.31.3.2])
 by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new,
 port 10026)
 with LMTP id BXINV7SbzKYc; Wed, 28 Oct 2015 18:43:30 +0000 (UTC)
Subject: Re: [CFT] Buildworld ccache support
DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com CF628166E1
References: <561FC81B.1090309@FreeBSD.org> <27231.1446010033@chaos>
Cc: "Simon J. Gerraty" <sjg@juniper.net>, current@freebsd.org
From: Bryan Drewery <bdrewery@FreeBSD.org>
Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF;
 url=http://www.shatow.net/bryan/bryan2.asc
Organization: FreeBSD
Message-ID: <5631174B.7070609@FreeBSD.org>
Date: Wed, 28 Oct 2015 11:43:23 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101
 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <27231.1446010033@chaos>
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="tUlKtk0Hbi7VNdef1XpkQJ2di7SExtdc5"
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Oct 2015 18:43:35 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--tUlKtk0Hbi7VNdef1XpkQJ2di7SExtdc5
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 10/27/2015 10:27 PM, Simon J. Gerraty wrote:
> Bryan Drewery <bdrewery@freebsd.org> wrote:
>> https://people.freebsd.org/~bdrewery/patches/world-ccache.diff
>=20
> In the Junos build - where we used ccache for quite some time
> I did:
>=20
> _CC :=3D ${CC}
> CC =3D ${CCACHE_ENV} ${_CC}
>=20
> Since sometimes you want the compiler without ccache - eg when linking.=


Yes, I ended up changing the patch significantly to avoid using it for
mkdep and linking.  I moved away from using PATH as well since it is
obscure about whether ccache is being used or not.  I now always modify C=
C.

>=20
> That needs to happen after CC is determined of course.
>=20
> If the include of bsd.mkopt.mk were moved to after the inlcude of
> local.sys.env.mk, then you could simply:
>=20
> __DEFAULT_NO_OPTIONS+=3D CCACHE_BUILD
>=20
> there or in src.sys.env.mk
>=20
>>
>> To use just set WITH_CCACHE_BUILD=3D in src.conf or make.conf.  I
>> purposely matched it to the same as the ports build.
>>
>> Thanks!


--=20
Regards,
Bryan Drewery


--tUlKtk0Hbi7VNdef1XpkQJ2di7SExtdc5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJWMRdSAAoJEDXXcbtuRpfPzp0H+wTyXQIkHnBI0foTsJSZkrFf
5JnB/HjeBLUfbU3uAkojuAQuO4A/Rv2nNHmxiVjtoXWHyAnEDxkFjpRLc79YYqh/
SpMqQamMdJZJgUnEFwrHoy8necIG+4QZTihRrX9SUeTZgJD1A2JNeDcHxaWlfgGg
snzTYcuc3s6mqgHCQEySbN/uCtgJ3bwDBTQItwAuiM+WpKTtJDQWQKBz2uhC+VlM
2lfiBps97wLzLDCUhEIfx3gvnk6XtUQ8Gv/bIQ68Sc9hRMeuyAWPJnJ51APYLCf5
Tk/sA9V/o9Hg/D2FxTf1U47kfhllo0pQb14PkOjW4+zYQ7v1AMoYC7XWdh5HvLg=
=WR8s
-----END PGP SIGNATURE-----

--tUlKtk0Hbi7VNdef1XpkQJ2di7SExtdc5--