Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-01-14 09:54:04


Hi Zbynek,

> According to the documentation each property not defined as 'optional'
> has a default value. I've attached a test where I have defined a
> composite property. The property is properly reflected in the build
> path. However it is is not used when building the target. Here is the
> question again - bug or feature? :-)

It's a bug. It was reported some time ago but is still not fixed. In fact,
I've being considering the algorithm for deciding the build properties for
past few days, with intention of fixing this and other corner cases.

I'm not yet ready to commit a full-blown patch, with comments and tests, but
meanwhile you can try the attached. Let me know if it works.

- Volodya
 --Boundary-00=_MgVBA06kP+KKh4x Content-Type: text/x-diff;
charset="iso-8859-1";
name="composite.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="composite.diff"

Index: targets.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/build/targets.jam,v
retrieving revision 1.145
diff -u -r1.145 targets.jam
--- targets.jam 13 Jan 2004 10:24:11 -0000 1.145
+++ targets.jam 14 Jan 2004 14:50:07 -0000
@@ -480,6 +480,7 @@
{
p = [ $(p).expand-composites ] ;
p = [ $(p).add-defaults ] ;
+ p = [ $(p).expand-composites ] ;
local r = [ generate-really $(p) ] ;
usage-requirements = [ $(usage-requirements).add $(r[1]) ] ;
result += $(r[2-]) ;
 --Boundary-00=_MgVBA06kP+KKh4x--


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