Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-03 08:39:04


On Tuesday 02 August 2005 22:40, Andrey Melnikov wrote:

> 3) I think it's a bad idea to specify default values for features in
> init rule. I think feature.set-default rule should be run instead, or
> there should be another similar mechanism to do this.
>
> I also see similar fragments in old msvc.jam:
>
> linker = [ get-values <linker> : $(options) ] ;
> linker ?= link ;
>
> I think Vladimir Prus can help us here because I'm not so fluent in BB
> internals. Vladimir, is this a recommended practice or it's a legacy code?

The story is that it's not a real feature -- it just uses feature-like syntax
to pass named parameters to the 'init' rule, so you need to apply defaults
here.

We though that even better syntax will use the '=' sign:

using msvc : : linker=some_linker ;

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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