mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Don't auto-grist the argument in feature.attributes. This function is hot and it hurts performance.
[SVN r83822]
This commit is contained in:
@@ -194,7 +194,7 @@ local rule convert-command-line-element ( e )
|
||||
lresult = [ regex.split $(p) "," ] ;
|
||||
}
|
||||
|
||||
if $(feature) && free in [ feature.attributes $(feature) ]
|
||||
if $(feature) && free in [ feature.attributes <$(feature)> ]
|
||||
{
|
||||
# If we have free feature, then the value is everything
|
||||
# until the end of the command line token. Slashes in
|
||||
|
||||
@@ -223,7 +223,7 @@ rule valid ( names + )
|
||||
#
|
||||
rule attributes ( feature )
|
||||
{
|
||||
return $($(:E=:G=$(feature)).attributes) ;
|
||||
return $($(feature).attributes) ;
|
||||
}
|
||||
|
||||
|
||||
@@ -1232,7 +1232,6 @@ rule __test__ ( )
|
||||
subfeature fu : subfu2 : q r s ;
|
||||
|
||||
assert.result optional : attributes <fu> ;
|
||||
assert.result optional : attributes fu ;
|
||||
|
||||
assert.result <runtime-link>static <define>foobar <optimization>on
|
||||
<toolset>gcc:<define>FOO <toolset>gcc <variant>debug <stdlib>native
|
||||
|
||||
Reference in New Issue
Block a user