Boost logo

Boost-Build :

From: Brad King (brad.king_at_[hidden])
Date: 2002-01-12 20:24:51


Dave,

> Try this approach instead:
> module local test-names ;
> rule compile ( name : sources + : requirements * )
> {
> test-names += $(name) ;
> module local $(name).sources = $(sources) ;
> module local $(name).requirements = $(requirements) ;
> }
>
> actions quietly list
> {
> echo $(test-names) ;
> }
>
> rule sources ( target ) { return $(target).sources ; }
> rule requirements ( target ) { return $(target).requirements ; }
I had tried something similar, but it seems that the module-local
variables are not found from actions, only from rules. When I run that
code, I get a blank line printed out by the list action. If I make
test-names a non-local, it works fine. Is this a bug in Jam, or is the
code incorrect?

-Brad

 


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