Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2005-06-01 04:51:17


Hi,

(...)

> Your rule below therefor helps a lot because this way one detects inside
> the rule if we're in debug or release. Great!
>
> However, is'nt it missing soth. see below in the script
>
>
>> What I was
>> using (because, as you said, the non-rule version of <tag> no longer
>> works) was the following:
>>
>> rule my_tag ( name : type ? : property-set ) {
>> local tags ;
>> local v = [ $(property-set).get <variant> ] ;
>> if $(v) = debug {
>> tags += d ;
>> }
>> if $(tags) {
>> return [ virtual-target.add-suffix $(name)_$(tags:J="")
>> : $(type) : $(property-set) ] ;
>> }
>
> else { return $(name) ; }

I don't thin so: if the rule returns nothing, the core BB code will act as
if no tag rule had been specified.
Returning the 'raw' name will probably cause the file to be created without
the suffix.

Pedro

 


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