[distcc] ccache & distcc

Martin Pool mbp at sourcefrog.net
Thu Sep 16 21:40:20 GMT 2004


On 16 Sep 2004, Wayne Davison <wayned at samba.org> wrote:
> On Thu, Sep 16, 2004 at 10:23:32AM +0200, Marcus Gruendler wrote:
> > A long while ago (~2 years) there was a patch for ccache posted on the
> > distcc mailing list. This patch enabled ccache to use distcc without
> > changing the hash.
> 
> Can't you just use a masquerade-directory setup for distcc and use an
> unchanged ccache?  Just put the ccache masquerade dir prior to the
> distcc masquerade dir in your PATH, and all should be well.  (And
> avoids all the CC environment shenanigans.)

That will have two effects:

1 - using the masquerade directory or not will give different results

2 - ccache won't notice if you update the underlying gcc

Probably the best advice at the moment is to always use both of them.
If you don't want distributed compilation set DISTCC_HOSTS=localhost
and if you don't want caching set CCACHE_DISABLE.  The overhead should
then be pretty low.

--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/distcc/attachments/20040917/9e293f47/attachment.bin


More information about the distcc mailing list