Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to use semaphores
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-01-22 16:51:08


AMDG

On 01/22/2018 08:20 AM, olan via Boost-build wrote:
> <snip>
> import notfile ;
>
> notfile foo : @sleep ;
> notfile bar : @sleep ;
> actions sleep {
>     sleep 1
> }
> JAM_SEMAPHORE on foo bar = s ;
>
> <snip>
>

JAM_SEMAPHORE needs to be set on the
jam targets, not the meta targets.

rule sleep ( targets * : sources * : properties * )
{
  # You should probably use a longer name than `s` to avoid clashes.
  JAM_SEMAPHORE on $(targets) = s ;
}

In Christ,
Steven Watanabe


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