diff options
| author | practicalswift <[email protected]> | 2018-03-15 16:13:11 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-06-24 20:35:27 +0200 |
| commit | 94e52d13db49405b1858090041fdf9af49096d43 (patch) | |
| tree | ee548605894773078a969fb5cd89cb4d191353e8 | |
| parent | Merge #13530: bench: Add missing pow.h header (diff) | |
| download | discoin-94e52d13db49405b1858090041fdf9af49096d43.tar.xz discoin-94e52d13db49405b1858090041fdf9af49096d43.zip | |
Add -ftrapv to DEBUG_CXXFLAGS when --enable-debug is used
| -rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ff7f1b39c..e4142f576 100644 --- a/configure.ac +++ b/configure.ac @@ -263,6 +263,7 @@ if test "x$enable_debug" = xyes; then AX_CHECK_PREPROC_FLAG([-DDEBUG],[[DEBUG_CPPFLAGS="$DEBUG_CPPFLAGS -DDEBUG"]],,[[$CXXFLAG_WERROR]]) AX_CHECK_PREPROC_FLAG([-DDEBUG_LOCKORDER],[[DEBUG_CPPFLAGS="$DEBUG_CPPFLAGS -DDEBUG_LOCKORDER"]],,[[$CXXFLAG_WERROR]]) + AX_CHECK_COMPILE_FLAG([-ftrapv],[DEBUG_CXXFLAGS="$DEBUG_CXXFLAGS -ftrapv"],,[[$CXXFLAG_WERROR]]) fi if test x$use_sanitizers != x; then |