$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
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) ] ;
Voila!
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.