2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-18 14:02:11 +00:00
[SVN r35925]
This commit is contained in:
Vladimir Prus
2006-11-08 10:02:36 +00:00
parent 1943cf7822
commit 4f082ca1e2
2 changed files with 40 additions and 1 deletions

View File

@@ -425,9 +425,15 @@ rule refine-from-user-input ( parent-requirements : specification *
if $(remove-requirements)
{
# Need to create property set, so that path features
# and indirect features are translated just like they
# are in project requirements.
local ps = [ property-set.create-from-user-input
$(remove-requirements) : $(project-module) $(location) ] ;
parent-requirements = [ property-set.create
[ set.difference [ $(parent-requirements).raw ]
: $(remove-requirements) ] ] ;
: [ $(ps).raw ] ] ] ;
specification = $(add-requirements) ;
}

View File

@@ -78,5 +78,38 @@ t.expect_addition("sub2/bin/$toolset/debug/link-static/hello.exe")
t.expect_addition("sub3/bin/$toolset/debug/threading-multi/hello.exe")
t.expect_addition("sub4/bin/$toolset/debug/threading-multi/hello.exe")
t.rm(".")
# No test that path requirements can be removed as well.
t.write("Jamroot", """
build-project sub ;
""")
t.write("sub/Jamfile", """
project : requirements <include>broken ;
exe hello : hello.cpp : -<include>broken ;
""")
t.write("sub/hello.cpp", """
#include "math.h"
int main()
{
return 0;
}
""")
t.write("sub/broken/math.h", """
Broken
""")
t.run_build_system()
t.expect_addition("bin/$toolset/debug/hello.exe")
t.cleanup()