2
0
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:
Steven Watanabe
2013-04-09 20:08:22 +00:00
parent f7ca478bdd
commit bc49bf86f6
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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