Re: distributed builds in makefiles
Re: distributed builds in makefiles
- Subject: Re: distributed builds in makefiles
- From: Markus Hitter <email@hidden>
- Date: Thu, 22 Sep 2005 11:37:59 +0200
Am 22.09.2005 um 01:07 schrieb Stefan Werner:
I am using Makefiles as a part of my build process and am wondering
if there's a way that Makefiles could take advantage of multiple
CPUs and distributed compiling like Xcode builds.
"man make", have a look at the -j option.
I should have been more precise: I know about -j and I also know
how to substitute cc with distcc - my question is rather, how do I
make my makefile set these automatically?
I vaguely remember make's ability to do this somehow. "-j 0"? Might
be a deprecated thing, though.
Another approach would be a wrapper script around make - if Xcode
sets some environment variable to let you know how many processors
are there / should be used.
Third approach would be to ask the hardware, something along:
ioreg | grep MacRISC2CPU | wc -l
Sorry for giving you only hints instead of solutions :-)
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden