• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Boost ThrowException Library test Jamfile
2#
3# Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
4# Copyright 2019 Peter Dimov
5#
6# Distributed under the Boost Software License, Version 1.0. (See accompanying
7# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
9import testing ;
10
11project : requirements
12  <warnings>extra
13  <toolset>msvc:<warnings-as-errors>on
14  <toolset>clang:<warnings-as-errors>on
15  <toolset>gcc:<warnings-as-errors>on
16  <toolset>gcc:<cxxflags>-Wshadow ;
17
18run throw_exception_test.cpp ;
19run throw_exception_no_exceptions_test.cpp ;
20run throw_exception_no_integration_test.cpp ;
21run throw_exception_no_both_test.cpp ;
22
23compile-fail throw_exception_fail.cpp
24  : <warnings-as-errors>off ;
25
26run throw_exception_test2.cpp ;
27run throw_exception_test3.cpp ;
28run throw_exception_test4.cpp ;
29run throw_exception_test5.cpp ;
30
31lib lib1_throw : lib1_throw.cpp : <define>LIB1_SOURCE=1 <link>shared:<define>LIB1_DYN_LINK=1 : : <link>shared:<define>LIB1_DYN_LINK=1 ;
32lib lib2_throw : lib2_throw.cpp : <define>LIB2_SOURCE=1 <link>shared:<define>LIB2_DYN_LINK=1 : : <link>shared:<define>LIB2_DYN_LINK=1 ;
33lib lib3_throw : lib3_throw.cpp : <define>LIB3_SOURCE=1 <link>shared:<define>LIB3_DYN_LINK=1 : : <link>shared:<define>LIB3_DYN_LINK=1 ;
34
35run throw_from_library_test.cpp lib1_throw lib2_throw lib3_throw : : : <link>static : throw_from_library_static ;
36run throw_from_library_test.cpp lib1_throw lib2_throw lib3_throw : : : <link>shared : throw_from_library_shared ;
37
38run throw_exception_nx_test.cpp : : : <exception-handling>off ;
39run throw_exception_nx_test2.cpp : : : <exception-handling>off ;
40run throw_exception_nx_test3.cpp : : : <exception-handling>off ;
41
42run make_exception_ptr_test.cpp ;
43run make_exception_ptr_test2.cpp ;
44
45run make_exception_ptr_nx_test.cpp : : : <exception-handling>off ;
46run make_exception_ptr_nx_test2.cpp : : : <exception-handling>off ;
47