1#!/usr/local/bin/python3.8
2
3# Copyright 2018 Steven Watanabe
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)
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
13import BoostBuild
14
15t = BoostBuild.Tester(use_test_config=False)
16
17t.write("Jamroot.jam", """
18lib l : l.cpp : <suppress-import-lib>true ;
19""")
20
21t.write("l.cpp", """
22void
23#ifdef _WIN32
24__declspec(dllexport)
25#endif
26f() {}
27""")
28
29t.run_build_system()
30t.expect_addition("bin/$toolset/debug*/l.obj")
31t.expect_addition("bin/$toolset/debug*/l.dll")
32
33t.cleanup()
34