mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-28 21:54:03 +03:00
Added configure option to enable debug builds. If not enabled then
asserts are disabled.
This commit is contained in:
parent
df4807950a
commit
a59ad51ce2
@ -64,6 +64,15 @@ AC_LANG_CPLUSPLUS
|
||||
dnl our files end in .cpp not .C so tests should also end in .cpp
|
||||
ac_ext=cpp
|
||||
|
||||
dnl enable debugging or disable asserts
|
||||
AC_ARG_ENABLE([debug],
|
||||
AC_HELP_STRING([--enable-debug], [enable debugging]))
|
||||
if test "x$enable_debug" != xno; then
|
||||
CXXFLAGS="$CXXFLAGS -g"
|
||||
else
|
||||
CXXFLAGS="$CXXFLAGS -DNDEBUG"
|
||||
fi
|
||||
|
||||
dnl check compiler
|
||||
ACX_CHECK_CXX
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user