Closed GoogleCodeExporter closed 9 years ago
Distcc can handle that fine.
There's two ways to handle it using distcc.
The recommended approach is to use
make CC="distcc gcc"
and for your Makefile to refer to $(CC) rather than gcc.
However, if you have existing scripts or Makefiles that have "gcc" hard-coded,
and
you don't want to change them, there's a solution for that too.
You can use "masquerading". See the "MASQUERADING" section of the distcc man
page.
http://distcc.googlecode.com/svn/trunk/doc/web/man/distcc_1.html#TOC_11
Original comment by fergus.h...@gmail.com
on 1 Oct 2008 at 3:43
Thanks, but I know the usage CC=distcc~.
The question that I did is
'may scripts can make dependencies with other compilation commands'
Here is some pseudo code:
1 : if distcc a.c then change variable BVAR of b.c to -1 else BVAR=1
2 : distcc c.c
3 : distcc b.c
If distcc launches those three commands in simultaneously, then 3rd compilaiton
job cannot guarantee its correctness.
How distcc handle the dependency problem?
Original comment by reald...@gmail.com
on 3 Oct 2008 at 7:25
Dependency checking is handled by "make".
If you declare the dependencies in your makefile so that
make -j
works correctly, then
make -j CC=distcc
should work fine too.
Use of distcc makes no difference to how you should declare the dependencies in
you makefile.
Original comment by fergus.h...@gmail.com
on 3 Oct 2008 at 1:23
Dependency checking is handled by "make".
If you declare the dependencies in your makefile so that
make -j
works correctly, then
make -j CC=distcc
should work fine too.
Use of distcc makes no difference to how you should declare the dependencies in
you makefile.
Original comment by fergus.h...@gmail.com
on 3 Oct 2008 at 2:16
Dependency checking is handled by "make".
If you declare the dependencies in your makefile so that
make -j
works correctly, then
make -j CC=distcc
should work fine too.
Use of distcc makes no difference to how you should declare the dependencies in
you makefile.
Original comment by fergus.h...@gmail.com
on 3 Oct 2008 at 2:16
Original issue reported on code.google.com by
reald...@gmail.com
on 1 Oct 2008 at 6:55