Skip to content

Commit 06e18e0

Browse files
committed
build: use BOOST_MULTI_INDEX_ENABLE_SAFE_MODE when debugging
Use of this macro enables precondition checks for iterators and functions of the library. It's use is recommended in debug builds. See: https://www.boost.org/doc/libs/1_78_0/libs/multi_index/doc/tutorial/debug.html.
1 parent fdb82a3 commit 06e18e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,10 @@ if test "$use_boost" = "yes"; then
14551455
dnl we don't use multi_index serialization
14561456
BOOST_CPPFLAGS="$BOOST_CPPFLAGS -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION"
14571457

1458+
if test "$enable_debug" = "yes" || test "$enable_fuzz" = "yes"; then
1459+
BOOST_CPPFLAGS="$BOOST_CPPFLAGS -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE"
1460+
fi
1461+
14581462
if test "$suppress_external_warnings" != "no"; then
14591463
BOOST_CPPFLAGS=SUPPRESS_WARNINGS($BOOST_CPPFLAGS)
14601464
fi

0 commit comments

Comments
 (0)