]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/feature_suppress_import_lib.py
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / feature_suppress_import_lib.py
CommitLineData
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
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()