Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
1b6f5ae1
Commit
1b6f5ae1
authored
Dec 20, 2014
by
Tiago Peixoto
Browse files
Add -DNDEBUG to CXXFLAGS to disable assert() when --enable-debug is not being used
parent
53e686e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
1b6f5ae1
...
...
@@ -44,13 +44,15 @@ AC_MSG_CHECKING(whether to enable debug info...)
AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug],[compile debug information [default=disabled] ])],
if test $enableval = yes; then
[AC_DEFINE([DEBUG], 1, [compile debug info])]
[CXXFLAGS="
${CXXFLAGS} -ggdb3"]
[CXXFLAGS="${CXXFLAGS} -ggdb3"]
[AC_MSG_RESULT(yes)]
else
[CXXFLAGS="${CXXFLAGS} -DNDEBUG"]
[AC_MSG_RESULT(no)]
fi
,
[AC_MSG_RESULT(no)]
,
[CXXFLAGS="${CXXFLAGS} -DNDEBUG"]
[AC_MSG_RESULT(no)]
)
dnl enable c++11
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment