Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Sorcerer on February 04, 2006, 09:58:39 am

Title: How to use distcc with C::B?
Post by: Sorcerer on February 04, 2006, 09:58:39 am
Hello, i tried to use distcc with Codeblocks and I find no way to get it work.
I like to use the managed Projects and because of that i don't no how to
set the number of jobs distcc should use. (the -j parameter of make)
So my Question is: Is it possible to use distcc with CB's managed Projects?
If yes: How?


Title: Re: How to use distcc with C::B?
Post by: dwmcqueen on January 05, 2007, 10:23:32 pm
Has anyone successfully done this?  I can see the benefit since my development is on a laptop, but I have a whole host of servers laying around doing nothing....
Title: Re: How to use distcc with C::B?
Post by: mandrav on January 05, 2007, 10:42:44 pm
Take a look at this recent topic (http://forums.codeblocks.org/index.php?topic=4806.0). It's about ccache but the concept remains the same...
Title: Re: How to use distcc with C::B?
Post by: dwmcqueen on January 05, 2007, 11:24:17 pm
Wouldn't it be cleaner to create a new Compiler profile (such as "MinGW with DistCC") that uses distcc?
Title: Re: How to use distcc with C::B?
Post by: MortenMacFly on January 06, 2007, 11:39:05 am
Wouldn't it be cleaner to create a new Compiler profile (such as "MinGW with DistCC") that uses distcc?
Sure. Make a copy of the MinGW compiler, create the batch file(s) as proposed in the other thread and setup the programs accordingly. Can be done in less than a minute... ;-)
With regards, Morten.
Title: Re: How to use distcc with C::B?
Post by: dwmcqueen on January 08, 2007, 07:03:00 pm
Of course, that is assuming there is a distcc port to MinGW ;)  As far as I know, distcc needs some hacking to work there...
Title: Re: How to use distcc with C::B?
Post by: dwmcqueen on January 10, 2007, 04:24:57 pm
I think that is a good short-term solution.  But I'd really like to see a "Distributed Compiling" option - sort of along the lines of what Xcode has (and Xcode uses a patched distcc to do this).