Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-04-01 14:05:00


On Tuesday 25 March 2008 13:56:54 Roland Schwarz wrote:
> I am trying to use an obviously seldom used feature of the tagging
> machinery.
>
> In my custome tag rule I tried to use something like
>
> return [ common.format-name
> <base> <toolset> <property:toolset-gcc:flavor> <threading>
> <runtime>
> : $(name) : $(type) : $(property-set) ] ;
>
> I concluded from the doc several lines above:
>
> # <property:/property-name/>[joiner]
> # :: Direct lookup of the given property-name value in the
> # build properties.
>
>
> it should work so as to look up the value of the property in the current
> property set and append it to the tag.
>
> Unfortunately this doe not work as expected. The lookup code does not
> try to look up in the properties, but in the format string.
>
> I attach a patch that resolves this issue, and also allows pattern
> matching, so that
> e.g.
> <property:toolset-.*:flavor> would match every toolsets flavor.

Rene,
you're the author of common.format-name. Does Roland's patch look good for you?

Thanks,
Volodya


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