]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/gcc_runtime.py
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / gcc_runtime.py
CommitLineData
7c673cae
FG
1#!/usr/bin/python
2
3# Copyright 2004 Vladimir Prus
4# Distributed under the Boost Software License, Version 1.0.
1e59de90
TL
5# (See accompanying file LICENSE.txt or copy at
6# https://www.bfgroup.xyz/b2/LICENSE.txt)
7c673cae
FG
7
8# Tests that on gcc, we correctly report a problem when static runtime is
9# requested for building a shared library.
10
11import BoostBuild
12
13t = BoostBuild.Tester()
14t.write("jamroot.jam", "lib hello : hello.cpp ;")
15t.write("hello.cpp", "int main() {}\n")
16
17t.run_build_system(["runtime-link=static"])
18t.expect_output_lines("warning: On gcc, DLLs can not be built with "
19 "'<runtime-link>static'.")
20t.expect_nothing_more()
21
22t.run_build_system(["link=static", "runtime-link=static"])
92f5a8d4
TL
23t.expect_addition("bin/$toolset/debug*/link-static*/hello.obj")
24t.expect_addition("bin/$toolset/debug*/link-static*/hello.lib")
7c673cae
FG
25t.expect_nothing_more()
26
27t.cleanup()