[distcc] Re: implicit compiler name

Dimitri PAPADOPOULOS-ORFANOS papadopo at shfj.cea.fr
Mon Sep 16 14:34:01 GMT 2002


> > Then there would still be the option of letting distcc run the
> > compiler the name of which is given by the symlink. This way
> > you don't have to modify Makefiles and you can easily switch
> > between a GNU compiler and a native compiler:
> > 	CC  -> distcc CC
> > 	g++ -> distcc g++
> 
> But then, again, it's not that simple.
> 
> Consider PATH=/usr/local/ccache/bin:/usr/local/distcc/bin:/usr/bin:...
> such that:
> 
> /usr/local/ccache/bin/gcc -> ccache
> /usr/local/distcc/bin/gcc -> distcc
> /usr/local/bin/gcc is the real thing
> 
> distcc has to be smart enough not only to know that the real gcc is
> looking for has to be different from a link to itself, but also that
> it must be *after* itself in the PATH, otherwise running gcc will
> enter infinite recursion between ccache and distcc.

It's probably not that simple, and distcc probably will have to know about 
ccache if it is to be used with ccache.

So yes, there may be difficulties, but I believe it's worth the pain.

Dimitri




More information about the distcc mailing list