]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/conditionals2.py
3 # Copyright 2003 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
7 # Regression test: it was possible that due to evaluation of conditional
8 # requirements, two different values of non-free features were present in a
13 t
= BoostBuild
.Tester()
17 t
.write("jamroot.jam", """
21 feature.feature the_feature : false true : propagated ;
23 rule maker ( targets * : sources * : properties * )
25 if <the_feature>false in $(properties) &&
26 <the_feature>true in $(properties)
28 EXIT "Oops, two different values of non-free feature" ;
30 CMD on $(targets) = [ common.file-creation-command ] ;
38 make a : a.cpp : maker : <variant>debug:<the_feature>true ;