assert on integer overflow in debug builds with GCC
This commit is contained in:
parent
3f572d43ef
commit
df0d714713
3
Jamfile
3
Jamfile
|
@ -507,6 +507,9 @@ local usage-requirements =
|
|||
# disable some warnings for gcc
|
||||
<toolset>gcc:<cflags>-fno-strict-aliasing
|
||||
<toolset>gcc:<cflags>-Wno-missing-braces
|
||||
# assert on integer overflow
|
||||
<toolset>gcc,<variant>debug:<cflags>-ftrapv
|
||||
<toolset>darwin,<variant>debug:<cflags>-ftrapv
|
||||
<toolset>clang:<cflags>-Wno-invalid-offsetof
|
||||
<boost>system:<cxxflags>$(CXXFLAGS)
|
||||
<boost>system:<linkflags>$(LDFLAGS)
|
||||
|
|
Loading…
Reference in New Issue