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

next in thread | previous in thread | raw e-mail | index | archive | help
Bryan Drewery <bdrewery@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.

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!



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