|
Boost-Build : |
Subject: Re: [Boost-build] Programmatic Job Count
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-11-19 15:50:45
On Wednesday 19 November 2008 11:16:00 you wrote:
> On Tuesday 18 November 2008 21:04:38 Brad Howes wrote:
> > Is there any way to tell Boost how many jobs to run in parallel from
> > within a Jamfile, a programmatic equivalent to '-j N'?
>
> It is not possible, but hopefully will be possible later today :-)
Brad,
Please update and rebuild Boost.Jam. Then, put the following in your Jamroot:
import modules ;
modules.poke : PARALLELISM : 4 ;
and it should have the same effect as -j4 on command line. Presently, the PARALLELISM
variable overrides -j option. Soonish, I'll make it so:
- you can create file project-config.jam, containing:
option jobs : 4 ;
and have 4 jobs by default
- you can use --jobs=10 on command like, overriding project-config.jam
Let me know if the Boost.Jam change works for you, and if the future directions
seems right,
Thanks,
Volodya
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk