From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-01-13 04:58:57
Zbynek Winkler wrote:
> > 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?
Ehm... right. It did not occured to me that one can add <define>NDEBUG to
definition of variant. I think I'll try implementing this.
> 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
Take a look at newly added example/variant directory, or, in case of CVS
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