-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJamfile
29 lines (24 loc) · 1.18 KB
/
Jamfile
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
project
: default-build
release
: requirements
<cxxflags>"-fno-omit-frame-pointer "
<library>/googlebenchmark # <link>static <runtime-link>static <*>static requires multi <threading>single <threading>multi
#<variant>debug:<define>SOMEMACRO # If compiling debug, define SOMEMACRO
#<cxxflags>"-fsanitize=float-cast-overflow "
#<variant>release # builds only release versions. It is not possible to build a debug version anymore as requirements can not be overwritten.
;
exe hash : hash.cpp : <optimization>speed ;
exe fast_accum : fast_accum.cpp : <optimization>speed ;
run test_int_overflow.cpp [ obj ftrapv : ftrapv_gcc.cpp ]
: : : <optimization>speed <variant>release
<toolset>gcc:<cxxflags>"-ftrapv "
;
alias test_int_overflow : : <toolset>msvc ;
exe int_overflow_no_check : test_int_overflow.cpp ftrapv_gcc.cpp : <optimization>speed <variant>release ;
alias int_overflow_no_check : : <toolset>msvc ;
run random_overflow.cpp ;
#error: default build must be identical in all alternatives
#error: main target is ./int_overflow_no_check
#error: with <variant>release
#error: differing from previous default build <optimization>speed <variant>release