]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | #!/usr/bin/python |
2 | ||
3 | # Copyright 2018 Steven Watanabe | |
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) | |
11fdf7f2 TL |
7 | |
8 | # Tests the suppress-import-lib feature | |
9 | ||
10 | # This used to cause the pdb and the import lib to get mixed up | |
11 | # if there are any exports. | |
12 | ||
13 | import BoostBuild | |
14 | ||
15 | t = BoostBuild.Tester(use_test_config=False) | |
16 | ||
17 | t.write("Jamroot.jam", """ | |
18 | lib l : l.cpp : <suppress-import-lib>true ; | |
19 | """) | |
20 | ||
21 | t.write("l.cpp", """ | |
22 | void | |
23 | #ifdef _WIN32 | |
24 | __declspec(dllexport) | |
25 | #endif | |
26 | f() {} | |
27 | """) | |
28 | ||
29 | t.run_build_system() | |
30 | t.expect_addition("bin/$toolset/debug*/l.obj") | |
31 | t.expect_addition("bin/$toolset/debug*/l.dll") | |
32 | ||
33 | t.cleanup() |