Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2002-12-02 08:26:45


Vladimir Prus <vladimir_prus_at_[hidden]> writes:

> * new/toolset.jam
> (using): New rule.
> (set-target-variables): Bufgix. I was making indirect call
> via variable with multiple values.

Hmm, is this an instance where the Perforce Jam behavior would've been
better? I do see a loop below...

> rule set-target-variables ( rule-or-module target : properties * )
> -{
> +{
> for local f in $(.$(rule-or-module).flags)
> {
> local variable = $(.$(rule-or-module).variable.$(f)) ;
> @@ -72,15 +82,15 @@
> for local r in $(requirements)
> {
> local item = [ feature.get-values $(r) : $(properties) ] ;
> - if $(item)
> + for local i in $(item)
> {
> if dependency in [ feature.attributes $(r:G) ]
> {
> - result += [ $(item).actualize ] ;
> + result += [ $(i).actualize ] ;
> }
> else
> {
> - result += $(item) ;
> + result += $(i) ;
> }
> }
> }
>

-- 
David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
 

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