# Boost ThrowException Library test Jamfile # # Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. # Copyright 2019 Peter Dimov # # 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) require-b2 5.0.1 ; import testing ; import-search /boost/config/checks ; import config : requires ; local gcc-flags = -Wsign-promo -Wconversion -Wsign-conversion -Wshadow -Wundef ; project : requirements /boost/throw_exception//boost_throw_exception /boost/core//boost_core extra msvc:on clang:on gcc:on gcc:$(gcc-flags) clang:$(gcc-flags) ; local with-boost-exception = /boost/exception//boost_exception [ requires cxx11_noexcept ] ; run throw_exception_test.cpp ; run throw_exception_no_exceptions_test.cpp ; run throw_exception_no_integration_test.cpp ; run throw_exception_no_both_test.cpp ; compile-fail throw_exception_fail.cpp : off ; run throw_exception_test2.cpp ; run throw_exception_test3.cpp : : : $(with-boost-exception) ; run throw_exception_test4.cpp : : : $(with-boost-exception) ; run throw_exception_test5.cpp : : : $(with-boost-exception) ; lib lib1_throw : lib1_throw.cpp : LIB1_SOURCE=1 shared:LIB1_DYN_LINK=1 : : shared:LIB1_DYN_LINK=1 ; lib lib2_throw : lib2_throw.cpp : LIB2_SOURCE=1 shared:LIB2_DYN_LINK=1 : : shared:LIB2_DYN_LINK=1 ; lib lib3_throw : lib3_throw.cpp : LIB3_SOURCE=1 shared:LIB3_DYN_LINK=1 : : shared:LIB3_DYN_LINK=1 ; lib lib4_throw : lib4_throw.cpp : LIB4_SOURCE=1 shared:LIB4_DYN_LINK=1 : : shared:LIB4_DYN_LINK=1 ; run throw_from_library_test.cpp lib1_throw lib2_throw lib3_throw lib4_throw : : : $(with-boost-exception) static : throw_from_library_static ; run throw_from_library_test.cpp lib1_throw lib2_throw lib3_throw lib4_throw : : : $(with-boost-exception) shared darwin,norecover:no : throw_from_library_shared ; run throw_exception_nx_test.cpp : : : off ; run throw_exception_nx_test2.cpp : : : off ; run throw_exception_nx_test3.cpp : : : off ; run make_exception_ptr_test.cpp : : : $(with-boost-exception) ; run make_exception_ptr_test2.cpp : : : $(with-boost-exception) ; run make_exception_ptr_nx_test.cpp : : : $(with-boost-exception) off ; run make_exception_ptr_nx_test2.cpp : : : $(with-boost-exception) off ; run throw_with_location_test.cpp ; run throw_with_location_test2.cpp ; run throw_with_location_test3.cpp ; run throw_with_location_test4.cpp ; run throw_with_location_nx_test.cpp : : : off ; run throw_with_location_test3.cpp : : : off : throw_with_location_test3_nr ;