blob: 8dc66672753022aeba1a36f359f95f48b90d80e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/usr/bin/python
# Copyright 2018 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Tests the suppress-import-lib feature
# This used to cause the pdb and the import lib to get mixed up
# if there are any exports.
import BoostBuild
t = BoostBuild.Tester(use_test_config=False)
t.write("Jamroot.jam", """
lib l : l.cpp : <suppress-import-lib>true ;
""")
t.write("l.cpp", """
void
#ifdef _WIN32
__declspec(dllexport)
#endif
f() {}
""")
t.run_build_system()
t.expect_addition("bin/$toolset/debug*/l.obj")
t.expect_addition("bin/$toolset/debug*/l.dll")
t.cleanup()
|