Skip to content

Commit

Permalink
Add -ftrapv to DEBUG_CXXFLAGS when --enable-debug is used
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Jun 24, 2018
1 parent b1dc39d commit 94e52d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94e52d1

Please sign in to comment.