2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00
[SVN r16799]
This commit is contained in:
Dave Abrahams
2003-01-08 19:38:27 +00:00
parent e8ab0366e1
commit 04ced730be
2 changed files with 22 additions and 2 deletions

View File

@@ -296,9 +296,14 @@ rule take ( attributes + : properties * : feature-space ? )
rule select ( features * : properties * )
{
local result ;
# add any missing angle brackets
local empty = "" ;
features = $(empty:G=$(features)) ;
for local p in $(properties)
{
if $(p:G) = <$(features)>
if $(p:G) in $(features)
{
result += $(p) ;
}
@@ -461,6 +466,11 @@ local rule __test__ ( )
assert.result <include>a
: select include : <include>a <toolset>gcc ;
assert.result <include>a
: select include bar : <include>a <toolset>gcc ;
assert.result <include>a <toolset>gcc
: select include <bar> <toolset> : <include>a <toolset>gcc ;
pm = [ new property-map ] ;
$(pm).insert <toolset>gcc : o ;

View File

@@ -296,9 +296,14 @@ rule take ( attributes + : properties * : feature-space ? )
rule select ( features * : properties * )
{
local result ;
# add any missing angle brackets
local empty = "" ;
features = $(empty:G=$(features)) ;
for local p in $(properties)
{
if $(p:G) = <$(features)>
if $(p:G) in $(features)
{
result += $(p) ;
}
@@ -461,6 +466,11 @@ local rule __test__ ( )
assert.result <include>a
: select include : <include>a <toolset>gcc ;
assert.result <include>a
: select include bar : <include>a <toolset>gcc ;
assert.result <include>a <toolset>gcc
: select include <bar> <toolset> : <include>a <toolset>gcc ;
pm = [ new property-map ] ;
$(pm).insert <toolset>gcc : o ;