-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJamfile
More file actions
66 lines (54 loc) · 1.84 KB
/
Jamfile
File metadata and controls
66 lines (54 loc) · 1.84 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 2025 Matt Borland
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt
require-b2 5.0.1 ;
import-search /boost/config/checks ;
import config : requires ;
import modules ;
import testing ;
project : requirements
<toolset>gcc:<cxxflags>-Wall
<toolset>gcc:<cxxflags>-Wextra
# Clang-Cl gives errors that are incorrect or irrelevant (e.g. C++98 compat)
#<toolset>clang:<cxxflags>-Wall
#<toolset>clang:<cxxflags>-Wextra
<toolset>msvc:<warnings>all
# Additional flags by request
<toolset>gcc:<cxxflags>-Wsign-conversion
<toolset>gcc:<cxxflags>-Wconversion
<toolset>gcc:<cxxflags>-Wundef
<toolset>gcc:<cxxflags>-Wold-style-cast
#<toolset>gcc:<cxxflags>-Wduplicated-branches
<toolset>gcc:<cxxflags>-Wfloat-equal
<toolset>gcc:<cxxflags>-Wshadow
<toolset>clang:<cxxflags>-Wsign-conversion
<toolset>clang:<cxxflags>-Wconversion
<toolset>clang:<cxxflags>-Wundef
<toolset>clang:<cxxflags>-Wold-style-cast
<toolset>clang:<cxxflags>-Wfloat-equal
<toolset>msvc:<warnings-as-errors>on
<toolset>clang:<warnings-as-errors>on
<toolset>gcc:<warnings-as-errors>on
[ requires cxx14_decltype_auto cxx14_generic_lambdas cxx14_return_type_deduction cxx14_variable_templates cxx14_constexpr ]
;
run quick.cpp ;
run test_abs.cpp ;
run test_add.cpp ;
run test_base.cpp ;
run test_clamp.cpp ;
run test_compare.cpp ;
run test_comparetotal.cpp ;
run test_divide.cpp ;
run test_max.cpp ;
run test_min.cpp ;
run test_minus.cpp ;
run test_multiply.cpp ;
run test_plus.cpp ;
run test_pow.cpp ;
run test_quantize.cpp ;
run test_remainder.cpp ;
run test_squareroot.cpp ;
run test_subtract.cpp ;
# Dectest tests for rounding in a way that diverges from how C++ floating point numbers round
# E.g. 1.7 rounds to 2 in dectest, but would be 1 if using a builtin floating point type
#run test_tointegral.cpp ;