Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-04-17 12:47:58


Brad Howes wrote:

> Anyone,
>
> From an action, what is the best/easiest way to get the active build
> variant (eg. debug or release)? I scanned the docs and some of the
> tool definitions, but nothing stood out. Must have missed it...

Inside action, there's no way. If you have rule/action pair, the rule
gets called with the list of properties, and the value of the 'variant'
property is what you need. There are some helpers in feature.jam to
get a value of specific feature.

Note that you might not need it at all -- it's possible to start with
variant=debug and then add explicit properties to essentially get
optimized build.

- 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