Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / histogram / Jamfile
1 # Copyright Mateusz Loskot 2018 <mateusz@loskot.net>
2 # Copyright Klemens David Morgenstern, Hans P. Dembinski 2016-2017
3 #
4 # Use, modification and distribution is subject to the Boost Software License,
5 # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
7
8 import common ;
9
10 project
11     : requirements
12     <implicit-dependency>/boost//headers
13     <include>$(BOOST_ROOT)
14     <toolset>clang:<cxxflags>"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing"
15     <toolset>gcc:<cxxflags>"-pedantic -Wextra -Wsign-compare -Wstrict-aliasing -fstrict-aliasing"
16     : default-build
17     <warnings>all
18     ;
19
20 path-constant THIS_PATH : . ;
21
22 # only works with clang because of -fsanitize-blacklist
23 variant histogram_ubasan : debug :
24     <cxxflags>"-fno-omit-frame-pointer -O0 -fno-inline -fsanitize=address,leak,undefined -fno-sanitize-recover=all -fsanitize-blacklist=$(THIS_PATH)/tools/blacklist.supp"
25     <linkflags>"-fsanitize=address,leak,undefined"
26     ;
27
28 ## Special builds:
29 #
30 # Generate coverage data:              `b2 cxxstd=latest coverage=on`
31 # Build without exceptions and rtti:   `b2 exception-handling=off rtti=off`
32
33 build-project test ;
34 build-project examples ;