]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/gcc_runtime.py
3 # Copyright 2004 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
8 # Tests that on gcc, we correctly report a problem when static runtime is
9 # requested for building a shared library.
13 t
= BoostBuild
.Tester()
14 t
.write("jamroot.jam", "lib hello : hello.cpp ;")
15 t
.write("hello.cpp", "int main() {}\n")
17 t
.run_build_system(["runtime-link=static"])
18 t
.expect_output_lines("warning: On gcc, DLLs can not be built with "
19 "'<runtime-link>static'.")
20 t
.expect_nothing_more()
22 t
.run_build_system(["link=static", "runtime-link=static"])
23 binFolder
= "bin/$toolset/debug*/link-static/runtime-link-static"
24 t
.expect_addition("%s/hello.obj" % binFolder
)
25 t
.expect_addition("%s/hello.lib" % binFolder
)
26 t
.expect_nothing_more()