ccache support for make buildworld/make release
kris at obsecurity.org
Wed Aug 25 20:01:38 PDT 2004
On Thu, Aug 26, 2004 at 12:01:44AM +0300, Ruslan Ermilov wrote:
> On Wed, Aug 25, 2004 at 11:51:57PM +0300, Maxim Sobolev wrote:
> > Yeah, I've noticed that as well. Also, for some reason when I've re-run
> > make world second time all objects built after buildtools miss the
> > cache. Strange....
> Does ccache take into account that the "cc" binary may be different
> for the same source and the command? What will happen, assuming
> it's made to work, if you attempt to build the native i386 world,
> and then try to "make buildworld TARGET_ARCH=alpha"? The cc
> command will be the same; will ccache substitute the i386 code in
> this case? Also, what happens for a native build when we upgrade
> GCC version in the base?
I believe it hashes the output of the preprocessor and uses that as
the index into the cache. So cross-builds should probably be fine
(assuming the right cc is used) since they'll hash differently.
Compiler upgrades might not work reliably since you might sometimes
get the object file from the old compiler.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040825/f9178cb5/attachment.bin
More information about the freebsd-current