Boost logo

Boost-Build :

Subject: Re: [Boost-build] Concurrent jobs hints
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-12-09 16:16:15


On Friday, December 10, 2010 00:03:05 Piotr Jachowicz wrote:
> Steven Watanabe <watanabesj <at> gmail.com> writes:
> > [...]
> >
> > I believe that you need to set JAM_SEMAPHORE for
> > the bjam target. targets with the same JAM_SEMAPHORE
> > won't be executed in parallel.
>
> Thank you for reply! But where to put JAM_SEMAPHORE? My schema projects
> look like that ('schemabuild' is a generator which takes *.imp as input
> and creates two files: *.sch and *.cxx):
>
> import os ;
> make myschema.sch : myschema.imp : @myschema : <location>. ;
> make myschema.cxx : myschema.imp : @myschema : <location>. ;
>
> actions myschema
> {
> cd $(>:D)
> schemabuild $(>:D=)
> }

Try adding

        rule myschema
        {
                JAM_SEMAPHORE on $(<) = myschema-semaphore ;
        }

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: 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