Subject: Re: [Boost-build] Different result when -j
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-03-03 11:18:14
On 03/03/2015 07:54 AM, Paulo MÃ¡rcio Figueiredo Alves wrote:
> I'm wondering whether it's a b2 bug or I'm missing something, if I invoke
> *b2* on the annexed project it works, but *b2 -j4* does not (Windows only,
> I do not know a non-Windows case).
> The projects *c* and *b* depends on *a*. Project *c* works always, it's a
> test, but *b* works and fails depending on -j option value.
> Is there a better approach to achieve what I want?
The problem is that the dependency b.obj -> bin/a.exe
is missing. I think what you need is
obj b.obj : b.rc : <dependency>copy_a ;
exe b : b.obj main.cc ;
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