2 # Copyright John Maddock 2008.
3 # Use, modification and distribution are subject to the
4 # Boost Software License, Version 1.0. (See accompanying file
5 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 # If you need to alter build preferences then set them in
8 # the template defined in options_v2.jam.
15 <toolset>gcc:<cxxflags>-Wno-deprecated-declarations
20 import ../checks/config : requires ;
22 local is_unix = [ modules.peek : UNIX ] ;
28 exe has_atomic_lib : config_info.cpp atomic ;
29 explicit has_atomic_lib ;
30 exe has_pthread_lib : config_info.cpp pthread ;
31 explicit has_pthread_lib ;
32 exe has_rt_lib : config_info.cpp rt ;
37 [ compile config_test_c.c ]
43 [ check-target-builds has_atomic_lib : <source>atomic ]
44 [ check-target-builds has_pthread_lib : <source>pthread ]
45 [ check-target-builds has_rt_lib : <source>rt ]
46 : config_test_threaded
52 <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static
53 [ check-target-builds has_atomic_lib : <source>atomic ]
54 [ check-target-builds has_pthread_lib : <source>pthread ]
55 [ check-target-builds has_rt_lib : <source>rt ]
62 [ check-target-builds has_atomic_lib : <source>atomic ]
63 [ check-target-builds has_pthread_lib : <source>pthread ]
64 [ check-target-builds has_rt_lib : <source>rt ]
71 <exception-handling>off
72 [ check-target-builds has_atomic_lib : <source>atomic ]
73 [ check-target-builds has_pthread_lib : <source>pthread ]
74 [ check-target-builds has_rt_lib : <source>rt ]
75 : config_test_no_except
77 [ run config_info.cpp : : : <test-info>always_show_run_output <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static ]
78 [ run config_info.cpp : : : <test-info>always_show_run_output <threading>multi : config_info_threaded ]
79 [ run config_info.cpp : : : <test-info>always_show_run_output <rtti>off : config_info_no_rtti ]
80 [ run config_info.cpp : : : <test-info>always_show_run_output <exception-handling>off : config_info_no_except ]
81 [ run math_info.cpp : : : <test-info>always_show_run_output <toolset>borland:<runtime-link>static <toolset>borland:<link>static ]
82 [ run abi/abi_test.cpp abi/main.cpp ]
83 [ run limits_test.cpp ]
84 [ run link/main.cpp link//link_test
89 <define>BOOST_DYN_LINK=1
90 <define>BOOST_CONFIG_NO_LIB=1
94 [ compile-fail threads/test_thread_fail1.cpp ]
95 [ compile-fail threads/test_thread_fail2.cpp ]
96 [ compile boost_fallthrough_test.cpp : [ check-target-builds has_clang_implicit_fallthrough "Clang implicit fallthrough" : <toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ] ]
97 [ compile helper_macro_test.cpp ]
98 [ run cstdint_test.cpp : : : <warnings>all <toolset>gcc:<cxxflags>"-Wno-long-long -Wextra" <toolset>darwin:<cxxflags>-Wno-long-long ]
99 [ run cstdint_test2.cpp : : : <warnings>all <toolset>gcc:<cxxflags>"-Wno-long-long -Wextra" <toolset>darwin:<cxxflags>-Wno-long-long ]
100 [ compile cstdint_include_test.cpp : <warnings>all <toolset>gcc:<cxxflags>-Wextra ]
101 [ run config_build_check.cpp : : : [ requires int128 cxx11_constexpr cxx11_user_defined_literals ] ]
104 obj has_clang_implicit_fallthrough : cmd_line_check.cpp :
105 <toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ;
107 explicit has_clang_implicit_fallthrough ;
109 exe config_info_travis : config_info.cpp ;
110 install config_info_travis_install : config_info_travis : <location>. ;
111 explicit config_info_travis_install ;
112 explicit config_info_travis ;