2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-19 16:12:14 +00:00
Files
build/test/feature_suppress_import_lib.py
Nikita Kniazev c653af1954 emscripten renovation (#310)
* test suite fixes for link=static default

* emscripten renovation

* inherit from clang toolset
* update for 'new' fastcomp backend
* exceptions support
* dynamic linking support
* pthread support
* run-tests launcher via nodejs
2023-07-17 21:53:06 -05:00

34 lines
710 B
Python

#!/usr/bin/env python3
# Copyright 2018 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.bfgroup.xyz/b2/LICENSE.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(["link=shared"])
t.expect_addition("bin/$toolset/debug*/l.obj")
t.expect_addition("bin/$toolset/debug*/l.dll")
t.cleanup()