Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2005-06-01 04:46:15


Phillip Seaver wrote:

>>
>>I get an error saying that there is a
>>'duplicate name of actual target: <pbin/gcc/debug>tt_d'
>
>
> I haven't tried what you're doing, but could it be because there's
> nothing in there that refers to the variant?
> "<variant>debug:<tag>@debug-name" might work, for example.

Well conditionals do not work in combination with the rule-based <tag>.
Writing <variabt>debug:<tag>@debug-name results in some error in
modules.jam ;-(

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) ; }

> }
>

 


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