2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

Don't validate properties inside condition, because those properties

might involve values that might not be defined, and features that are not
defined.


[SVN r34084]
This commit is contained in:
Vladimir Prus
2006-05-25 07:59:36 +00:00
parent 57f5c303b7
commit 65ff7464a7

View File

@@ -139,19 +139,12 @@ rule expand-subfeatures-in-conditions ( properties * )
local e ;
for local c in $(condition)
{
if [ MATCH "^(<toolset>|<toolset->)" : $(c:G) ] ||
[ MATCH "^(<os>)" : $(c:G) ]
{
# It common that condition includes a toolset which
# was never defined, or mentiones subfeatures which
# were never defined. In that case, validation will
# only produce an spirious error, so don't validate.
e += [ feature.expand-subfeatures $(c) : true ] ;
}
else
{
e += [ feature.expand-subfeatures $(c) ] ;
}
# It common that condition includes a toolset which
# was never defined, or mentiones subfeatures which
# were never defined. In that case, validation will
# only produce an spirious error, so prevent
# validation by passing 'true' as second parameter.
e += [ feature.expand-subfeatures $(c) : true ] ;
}
if $(e) = $(condition)