assert on integer overflow in debug builds with GCC

This commit is contained in:
Arvid Norberg 2011-12-11 09:43:08 +00:00
parent 3f572d43ef
commit df0d714713
1 changed files with 3 additions and 0 deletions

View File

@ -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)