]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/chain.py
3 # Copyright 2003 Dave Abrahams
4 # Copyright 2002, 2003 Vladimir Prus
5 # Distributed under the Boost Software License, Version 1.0.
6 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
9 # 1) the 'make' correctly assigns types to produced targets
10 # 2) if 'make' creates targets of type CPP, they are correctly used.
14 t
= BoostBuild
.Tester(use_test_config
=False)
16 # In order to correctly link this app, 'b.cpp', created by a 'make' rule, should
19 t
.write("jamroot.jam", "import gcc ;")
21 t
.write("jamfile.jam", r
'''
27 echo int main() {} > $(<)
34 echo "int main() {}" > $(<)
38 IMPORT $(__name__) : create : : create ;
42 # Needs to be a static lib for Windows - main() cannot appear in DLL.
43 static-lib l : a.cpp b.cpp ;
45 make b.cpp : : create ;
50 t
.write("dummy.cpp", "// msvc needs at least one object file\n")
54 t
.expect_addition("bin/$toolset/debug/a.exe")