Boost logo

Boost-Build :

Subject: Re: [Boost-build] Failing test.
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-07-15 20:24:09


On 07/15/2012 03:19 PM, Jurko Gospodnetić wrote:
> If you or someone else could take a look - I'd be grateful... I hope
> to have the time to look into it again tomorrow or a bit later during
> the week...

The problem is a result of these dependencies:

INCLUDES x.cpp : ;
DEPENDS <object(c-scanner)>x.cpp : x.cpp ;

The result is that <object(c-scanner)>x.cpp
(which binds to x.cpp) depends on
I think this can be solved by changing DEPENDS
to INCLUDES, but this causes other problems.
The main problem of course, is that Boost.Build
doesn't have a way to specify a dependency on a
target that refers to the same file. The
correct behavior is a cross between DEPENDS
and INCLUDES. The result that we want is:

<object(c-scanner)>x.cpp -> x.cpp
<object(c-scanner)>x.cpp (internal node) -> x.cpp (internal node)


<object(c-scanner)>x.cpp (internal node) -> x.cpp
<object(c-scanner)>x.cpp (internal node) -> x.cpp (internal node)

and DEPENDS gives

<object(c-scanner)>x.cpp -> x.cpp
<object(c-scanner)>x.cpp -> x.cpp (internal node)

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at