Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-10-11 06:05:19


Jürgen Hunold wrote:

> On Monday 11 October 2004 12:24, Toon Knapen wrote:
> > Vladimir Prus wrote:
> >
> > What's weird is that
> >
> > <Jamfile>
> > lib bar : foo ;
> >
> > obj foo : foo.cpp : <variant>release:<optimization>off ;
> > </Jamfile>
> >
> > will induce all dependencies of library 'bar' (wich are in some
> > project-rule) to be compiled with '<optimization>off' also ?!
>
> You mean all libraries on which 'bar' depends ?
> Yes, you will get them all compiled with these flags too.

Yea :-(

The <library> project requirements apply to all targets in Jamfile, including
"obj". The the <library> feature is handled by moving the property value to
the list of sources. And now, the "obj" file compiles the library with
optimization=off.

I think it's possible that we change <library> to only have the special effect
for "exe" and "lib" targets. After all, it does not make such sense for other
targets.

Thoughs?

- Volodya

 


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