Re: More efficient multiple file compiles?

"Benjamin R. Haskell" <[email protected]>
Newsgroups gmane.comp.compilers.distcc
Message-ID <alpine.LNX.2.00.0904271739580.1984@averatec>
On Mon, 27 Apr 2009, Fergus Henderson wrote:

> On Mon, Apr 27, 2009 at 2:20 PM, Tom Holly <[email protected]> wrote:
>       I think mainly I just want to know when in the step by step procedure of
>       building/installing/running distcc, does the make -j come into play?
> 
> 
> Use "make -j" (or "pump make -j") when running distcc, after you have 
> already built and installed distcc.
> 

How was 'make -j12 CC=distcc <target>' failing for you?  That should be 
the right invocation, assuming you're not trying to do it before distcc is 
installed.

e.g.:

$ cd /usr/src/linux
$ make -j4 CC=distcc
[...]
  CC      kernel/exec_domain.o
  CC      arch/x86/kernel/io_delay.o
  CC      mm/bootmem.o
  CC      arch/x86/kernel/rtc.o
  CC      arch/x86/kernel/trampoline.o
  CC      mm/filemap.o
  CC      kernel/panic.o
[...]

Notice how it's switching between the kernel/ arch/x86/kernel/ and mm/ 
directories.  That's because the CC steps are being run simultaneously, as 
seen by distccmon-text (at a different point in time):

$ distccmon-text
 31766  Preprocess  buffer.c                    192.168.2.23[0]
 31755  Compile     ipcns_notifier.c            192.168.2.23[1]
 31774  Preprocess  clockevents.c               192.168.2.23[1]
 31781  Compile                                    localhost[2]

-- Ben
__ 
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options: 
https://lists.samba.org/mailman/listinfo/distcc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.