[CFT] Buildworld ccache support
Bryan Drewery
bdrewery at FreeBSD.org
Wed Oct 28 18:43:35 UTC 2015
On 10/27/2015 10:27 PM, Simon J. Gerraty wrote:
> Bryan Drewery <bdrewery at freebsd.org> wrote:
>> https://people.freebsd.org/~bdrewery/patches/world-ccache.diff
>
> In the Junos build - where we used ccache for quite some time
> I did:
>
> _CC := ${CC}
> CC = ${CCACHE_ENV} ${_CC}
>
> 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 CC.
>
> That needs to happen after CC is determined of course.
>
> If the include of bsd.mkopt.mk were moved to after the inlcude of
> local.sys.env.mk, then you could simply:
>
> __DEFAULT_NO_OPTIONS+= CCACHE_BUILD
>
> there or in src.sys.env.mk
>
>>
>> To use just set WITH_CCACHE_BUILD= in src.conf or make.conf. I
>> purposely matched it to the same as the ports build.
>>
>> Thanks!
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20151028/ce9496cd/attachment.bin>
More information about the freebsd-current
mailing list