[distcc] Do not allow localhost compile

Martin Pool mbp at sourcefrog.net
Wed Jun 1 00:07:37 GMT 2005


On Tue, 2005-05-31 at 16:44 -0700, Daniel Kegel wrote:
> Avuton Olrich wrote:
> > I have a really slow machine and two faster ones, I am compiling on
> > the slow machine and I would rather it be idle than compiled on. I do
> > not have it in the get hosts but I do see a few cc1plus in the top
> > output and 0% idle. Here's the simple question: Is localhost added by
> > default?
> > 
> > I'm running 2.18.3-r6 (gentoo) and thanks for your time.
> 
> Yes, kind of.
> I think you want to apply Michael Donohue's "Preprocessing is not free!" patch,
> and set  --localslots=0.  (I haven't tried this value myself, and
> it's not quite the intended use, but it's plausible.)
> You can get the patch from here:
> http://www.mail-archive.com/distcc@lists.samba.org/msg02699.html

Although that patch should probably be merged, and might help, I don't
think it has any effect on when cc1plus runs on localhost, which was the
original question.  That will basically be either when delegation fails,
or when there is a compiler option that can't be distributed.

-- 
Martin




More information about the distcc mailing list