Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-15 06:13:09


Vladimir Prus <ghost_at_[hidden]> writes:

> David Abrahams wrote:
>> @@ -148,10 +168,13 @@
>> # return the implicit feature associated with the given implicit value.
>> rule implied-feature ( implicit-value )
>> {
>> - local feature = $($(implicit-value).implicit-feature) ;
>> + local components = [ regex.split $(implicit-value) "-" ] ;
>> +
>> + local feature = $($(components[1]).implicit-feature) ;
>> if ! $(feature)
>> {
>> error \"$(implicit-value)\" is not a value of an implicit feature ;
>> + feature = "" ;
>
> Why is this assignment necessary?

During testing, try; {...} turns errors off. If this doesn't return a
value, its empty result gets passed on to a following rule which has
an argument list, and causes a hard argument error. Ultimately the
right fix would be to have a built-in which allowed us to turn arg
checking on/off, but I didn't want to make a core change for this
purpose.

-- 
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