1 --- a/tools/build/src/tools/stage.jam
2 +++ b/tools/build/src/tools/stage.jam
3 @@ -478,6 +478,10 @@ class install-target-class : basic-targe
4 return [ sequence.unique $(result2) ] ;
7 + rule skip-from-usage-requirements ( )
11 # Returns true iff 'type' is subtype of some element of 'types-to-include'.
13 local rule include-type ( type : types-to-include * )
15 +++ b/tools/build/test/install_build_no.py
19 +# Copyright 2021 Dmitry Arkhipov (grisumbras@gmail.com)
20 +# Distributed under the Boost Software License, Version 1.0.
21 +# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
23 +# Check that <build>no in usage-requirements of dependencies does not affect
24 +# install rule, i.e. a skipped installed target does not affect insallation of
29 +t = BoostBuild.Tester()
31 +t.write("a.cpp", "int main() {}\n")
33 +t.write("jamroot.jam", """
34 +make x : : maker : <build>no ;
36 +install install : x a ;
40 +t.expect_addition("install/a.exe")
43 --- a/tools/build/test/test_all.py
44 +++ b/tools/build/test/test_all.py
45 @@ -250,6 +250,7 @@ tests = ["abs_workdir",
47 "inherited_dependency",