-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.jam
More file actions
34 lines (27 loc) · 1.13 KB
/
Copy pathbuild.jam
File metadata and controls
34 lines (27 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2023-2024 René Ferdinand Rivera Morell
# Copyright 2026 Matt Borland
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt
require-b2 5.2 ;
import feature ;
constant boost_dependencies :
/boost/charconv//boost_charconv
/boost/core//boost_core
/boost/random//boost_random
/boost/throw_exception//boost_throw_exception ;
project /boost/safe_numbers ;
# Opt-in: build with boost.safe_numbers.compile_assert=on to turn provable
# compile-time-constant precondition violations (divide by zero, shift past type
# width, add/sub/mul overflow) into build errors. Only active on optimized GCC/Clang
# builds; a no-op elsewhere and at -O0. Default off. Propagated to consumers.
feature.feature boost.safe_numbers.compile_assert : off on : propagated ;
explicit
[ alias boost_safe_numbers : : : :
<include>include
<boost.safe_numbers.compile_assert>on:<define>BOOST_SAFE_NUMBERS_ENABLE_COMPILE_ASSERT
<library>$(boost_dependencies) ]
[ alias all : boost_safe_numbers test ]
;
call-if : boost-library safe_numbers
: install boost_safe_numbers
;