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.
16 <toolset>gcc:<cxxflags>-Wno-deprecated-declarations
21 import ../checks/config : requires ;
23 local is_unix = [ modules.peek : UNIX ] ;
29 exe has_atomic_lib : config_info.cpp atomic ;
30 explicit has_atomic_lib ;
31 exe has_pthread_lib : config_info.cpp pthread ;
32 explicit has_pthread_lib ;
33 exe has_rt_lib : config_info.cpp rt ;
38 [ compile config_test_c.c ]
44 [ check-target-builds has_atomic_lib : <source>atomic ]
45 [ check-target-builds has_pthread_lib : <source>pthread ]
46 [ check-target-builds has_rt_lib : <source>rt ]
47 : config_test_threaded
53 <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static
54 [ check-target-builds has_atomic_lib : <source>atomic ]
55 [ check-target-builds has_pthread_lib : <source>pthread ]
56 [ check-target-builds has_rt_lib : <source>rt ]
63 <toolset>gcc-4.4.7,<cxxstd>0x:<build>no # <memory> does not compile with -fno-rtti
64 [ check-target-builds has_atomic_lib : <source>atomic ]
65 [ check-target-builds has_pthread_lib : <source>pthread ]
66 [ check-target-builds has_rt_lib : <source>rt ]
73 <exception-handling>off
74 <target-os>vxworks:<build>no # vx requires complete library rebuild to turn off exceptions
75 [ check-target-builds has_atomic_lib : <source>atomic ]
76 [ check-target-builds has_pthread_lib : <source>pthread ]
77 [ check-target-builds has_rt_lib : <source>rt ]
78 : config_test_no_except
80 [ run config_info.cpp : : : <test-info>always_show_run_output <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static <toolset>msvc:<warnings-as-errors>on <toolset>gcc:<warnings-as-errors>on <toolset>clang:<warnings-as-errors>on ]
81 [ run config_info.cpp : : : <test-info>always_show_run_output <threading>multi <toolset>msvc:<warnings-as-errors>on <toolset>gcc:<warnings-as-errors>on <toolset>clang:<warnings-as-errors>on : config_info_threaded ]
82 [ run config_info.cpp : : : <test-info>always_show_run_output <rtti>off <toolset>msvc:<warnings-as-errors>on <toolset>gcc:<warnings-as-errors>on <toolset>clang:<warnings-as-errors>on : config_info_no_rtti ]
83 [ run config_info.cpp : : : <test-info>always_show_run_output <exception-handling>off
84 <target-os>vxworks:<build>no
85 : config_info_no_except ]
86 [ run math_info.cpp : : : <test-info>always_show_run_output <toolset>borland:<runtime-link>static <toolset>borland:<link>static ]
87 [ run abi/abi_test.cpp abi/main.cpp ]
88 [ run limits_test.cpp ]
89 [ run link/main.cpp link//link_test
94 <define>BOOST_DYN_LINK=1
95 <define>BOOST_CONFIG_NO_LIB=1
96 <target-os>vxworks:<link>shared
100 [ compile-fail threads/test_thread_fail1.cpp ]
101 [ compile-fail threads/test_thread_fail2.cpp ]
102 [ 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 ] ]
103 [ compile helper_macro_test.cpp ]
104 [ run cstdint_test.cpp : : : <warnings>all <toolset>gcc:<cxxflags>"-Wno-long-long -Wextra" <toolset>darwin:<cxxflags>-Wno-long-long ]
105 [ run cstdint_test2.cpp : : : <warnings>all <toolset>gcc:<cxxflags>"-Wno-long-long -Wextra" <toolset>darwin:<cxxflags>-Wno-long-long ]
106 [ compile cstdint_include_test.cpp : <warnings>all <toolset>gcc:<cxxflags>-Wextra ]
107 [ run config_build_check.cpp : : : [ requires int128 cxx11_constexpr cxx11_user_defined_literals cpp_lib_complex_udls cpp_range_based_for_17 ] ]
108 [ run helper_macros_test.cpp ]
109 [ compile pragma_message_test.cpp ]
110 [ compile header_deprecated_test.cpp ]
113 obj has_clang_implicit_fallthrough : cmd_line_check.cpp :
114 <toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ;
116 explicit has_clang_implicit_fallthrough ;
118 exe config_info_printer : config_info.cpp ;
119 explicit config_info_printer ;
123 echo With Standard Version $(STANDARD:E=default)
124 echo =====================================================================
128 rule print-run ( target : sources * : properties * )
130 STANDARD on $(target) = [ feature.get-values <cxxstd> : $(properties) ] ;
133 notfile print_config_info : @print-run : config_info_printer ;
134 explicit print_config_info ;
136 # Backwards compatibility:
137 exe config_info_travis : config_info.cpp ;
138 install config_info_travis_install : config_info_travis : <location>. ;
139 explicit config_info_travis_install ;