Subject: Re: [Boost-build] boost build semaphore
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-07-01 15:28:05
On 07/01/2013 12:11 PM, George Georgiev wrote:
> I am having a project with multiple libraries and unit-tests
> (applications). From time to time depending on the change I am getting in
> situation where almost every unit-tests application needs to be linked. I
> would like to avoid running too many link processes since it does not seam
> to perform very well. At the same time I do want to use the multi-thread
> option for the rest of the targets.
I believe that Boost.Build already does this
> What will be the easiest way to do that. Can I use SEMAPHORE variable? How
> I can apply it to all the targets from a type (in my case - executable)?
> Can I specify semaphore value different than the default '1' - in my case 2
> or 3 linking threads will still be ok.
The variable is JAM_SEMAPHORE. You have to set
it per target. Boost.Build doesn't expose this.
I think the only way to use it is to edit the
toolset to set this variable.
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