Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 2015 11:43:23 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        "Simon J. Gerraty" <sjg@juniper.net>, current@freebsd.org
Subject:   Re: [CFT] Buildworld ccache support
Message-ID:  <5631174B.7070609@FreeBSD.org>
In-Reply-To: <27231.1446010033@chaos>
References:  <561FC81B.1090309@FreeBSD.org> <27231.1446010033@chaos>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5631174B.7070609>