• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: distributed builds in makefiles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: distributed builds in makefiles
      • From: Eric Albert <email@hidden>
References: 
 >Re: distributed builds in makefiles (From: Stefan Werner <email@hidden>)

  • Prev by Date: Re: BugReport: Build after changing build config compiles old code
  • Next by Date: Re: good xcode book?
  • Previous by thread: Re: distributed builds in makefiles
  • Next by thread: Re: distributed builds in makefiles
  • Index(es):
    • Date
    • Thread