Boost logo

Boost-Build :

From: Zbynek Winkler (zwin_at_[hidden])
Date: 2004-01-12 09:58:01


Vladimir Prus wrote:

> There are two questions. First is when to set NDEBUG -- for
> <optimization>speed or for <variant>release. Second is how to set them: via
> "active" features or composite features.
>
> The answer to the last question is simple -- "active" features are used in
> only one place, and I'd be happy to remove them completely.
>
> The answer to the first question is not that simple. Assume you've created a
> new variable 'super-optimized-release'. If it's inherited from 'release',
> with current code you'll get NDEBUG automatically. If NDEBUG is set for
> <variant>release, you'll suddenly get no NDEBUG, and your
> super-optimized-release will suddenly become pretty slow.

I do not understand. When I create new variant (you meant variant,
didn't you?) inherited from 'release', it has all the settings from
release, does it not?

Zbynek

PS. As a side note - how would I go about creating new variant? Would
you care to add a small example (preferably no modifications to the bjam
tree)?

 


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