]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/dependency_property.py
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / tools / build / test / dependency_property.py
CommitLineData
7c673cae
FG
1#!/usr/bin/python
2
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)
6
7# Regression test: virtual targets with different dependency properties were
8# considered different by 'virtual-target.register', but the code which
9# determined the actual target paths ignored dependency properties so both
10# targets ended up being in the same location.
11fdf7f2
TL
11#
12# This test has flip-flopped several times between passing and failing.
13# Currently, the library is only considered relevant for linking and thus
14# does not cause a conflict. SJW 20180115
7c673cae
FG
15
16import BoostBuild
17
18
19t = BoostBuild.Tester()
20
21t.write("jamroot.jam", """\
22lib foo : foo.cpp ;
23exe hello : hello.cpp ;
24exe hello2 : hello.cpp : <library>foo ;
25""")
26
27t.write("hello.cpp", "int main() {}\n")
28
29t.write("foo.cpp", """\
30#ifdef _WIN32
31__declspec(dllexport)
32#endif
33void foo() {}
34""")
35
11fdf7f2 36t.run_build_system(["--no-error-backtrace"], status=0)
7c673cae
FG
37
38t.cleanup()