From: Mark Evans (evans_mark_at_[hidden])
Date: 2006-02-05 09:06:56
This should go in the FAQs because I had to figure this out myself just this week. The toolset.flags rule sets your TOOLSET variable "on" $(targets) for the actions block. The undocumented magic method to retrieve that value in a rule context is the following:
local toolset = [ on $(targets) return $(TOOLSET) ] ;
Jaroslav Gresula <jgresula_at_[hidden]> wrote: Could someone advise me how to retrieve value of a feature within a
rule? I followed an example from the docs which uses the toolset.flags
rule but with no luck.
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