mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Fixed a bug in for seldom used argument <property:/property-name/> in rule format-name.
Added /property-name/ may be a regex. [SVN r44343]
This commit is contained in:
@@ -643,7 +643,8 @@ actions hard-link
|
||||
# value as the version number.
|
||||
# <property:/property-name/>[joiner]
|
||||
# :: Direct lookup of the given property-name value in the
|
||||
# build properties.
|
||||
# build properties. /property-name/ is a regular expression.
|
||||
# e.g. <property:toolset-.*:flavor> will match every toolset.
|
||||
# /otherwise/
|
||||
# :: The literal value of the format argument.
|
||||
#
|
||||
@@ -693,12 +694,15 @@ rule format-name ( format * : name : type ? : property-set )
|
||||
|
||||
case <property:*> :
|
||||
local key = [ MATCH <property:(.*)> : $(f:G) ] ;
|
||||
local p = [ $(property-set).get [ MATCH <property:(.*)> : $(f:G) ] ] ;
|
||||
if $(p)
|
||||
{
|
||||
result += [ join-tag $(f:G=) : $(p) ] ;
|
||||
local p0 = [ MATCH <($(key))> : [ $(property-set).raw ] ] ;
|
||||
if $(p0) {
|
||||
local p = [ $(property-set).get <$(p0)> ] ;
|
||||
if $(p)
|
||||
{
|
||||
result += [ join-tag $(f:G=) : $(p) ] ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
case * :
|
||||
result += $(f:G=) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user