2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 13:42:14 +00:00
[SVN r16799]
This commit is contained in:
Dave Abrahams
2003-01-08 19:38:27 +00:00
parent 9aa834caaa
commit 2883eb386b

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 ;