[distcc] Can't compile C++ code

Martin Pool mbp at sourcefrog.net
Fri Jul 10 06:38:48 GMT 2009


2009/7/10 Crístian Viana <cristiandeives at gmail.com>:

> I thought that using distcc should be as simple as changing the compiler
> from gcc/g++ (both of them) to distcc, in the Makefile (aside the distcc
> configuration, daemon, etc). But it turned out that way won't work... your
> solution of using 'CC=distcc CXX="distcc g++" actually works, but this is
> not my ideal solution. CMake, for example, won't accept "distcc g++" as the
> compiler command, it only accepts one binary file/command. Maybe there
> should be two commands, like "distcc" and "distc++", and I would specify
> those commands as the new compilers. If "cc" alone can't handle every
> compilation, "distcc" alone shouldn't too...

Why not use masquerade mode here, it handles this case?

You said previously you appended it to the path but in fact you have
to prepend it, ie put it before the real compiler.

-- 
Martin <http://launchpad.net/~mbp/>


More information about the distcc mailing list