Subject: Re: [Boost-build] make more than one target with one custom command
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-09-29 11:27:02
On 29-Sep-15 6:20 PM, Roman Matsybora wrote:
> Also I found that setting path is different than moving files if we can build debug and release.
> if invoke "b2 debug release" with setting path, it will produce
> error: Name clash for <file-name>
Yep (we generate long paths precisely to allow multiple build variants).
> but if use file moving we will not get this error
> Action execute 2 times in this situation.
> If we use -j2 options can it be some random errors if script can conflict parallel executing?
In general, yes. You can prevent this in your action function, like so:
rule your-tool ( targets * : sources * : properties * )
JAM_SEMAPHORE on $(targets) = <s>your-tool ;
This specifies that all executions of this action must be serialized over given
semaphore name, "<s>your-tool", where <s> is just a convention.
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