Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Parallel build for scons ... access to MAKE_NJOBS?

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Jaka Kranjc <smgl AT lynxlynx.info>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Parallel build for scons ... access to MAKE_NJOBS?
  • Date: Sat, 17 Oct 2009 20:40:47 +0200

On Saturday 17 of October 2009 20:29:15 Thomas Orgis wrote:
> Am Sat, 17 Oct 2009 19:19:00 +0200
>
> schrieb Jaka Kranjc <smgl AT lynxlynx.info>:
> > It would be right for one core one processor systems. To get the right
> > count, you need to use count($DISTCC_HOSTS)*$JOBS_PER_HOST+$EXTRA_JOBS.
> > The vars are already available.
>
> I did -j$MAKE_NJOBS now, as suggested in IRC ... since I don't use distcc
> ... would that number as computed above work transparently? Or... is
> MAKE_NJOBS already that number?
No, like you already found out, MAKE_NJOBS == EXTRA_JOBS. The variable is a
relic from times long gone, when the number of jobs (MAKE_NJOBS) was always
autoset to the number of hosts plus one.

You can try using JOBS, which already has the number computed, but it can be
unset - make -j means infinite jobs; I don't know if scons treats it the same
way.

LP
--
We cannot command nature except by obeying her. --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org

Attachment: signature.asc
Description: This is a digitally signed message part.




Archive powered by MHonArc 2.6.24.

Top of Page