Skip to content

Commit 0d01272

Browse files
committed
build: don't use Boost multi_index serialization
We don't use the serialilzation or archiving facilities of multi_index. So globally disable support, which gives a minor improvement in build time, i.e less preprocessing work. See: https://www.boost.org/doc/libs/1_78_0/libs/multi_index/doc/tutorial/creation.html
1 parent d018db9 commit 0d01272

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,6 +1435,9 @@ if test "$use_boost" = "yes"; then
14351435
AC_MSG_ERROR([only libbitcoinconsensus can be built without Boost])
14361436
fi
14371437

1438+
dnl we don't use multi_index serialization
1439+
BOOST_CPPFLAGS="$BOOST_CPPFLAGS -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION"
1440+
14381441
if test "$suppress_external_warnings" != "no"; then
14391442
BOOST_CPPFLAGS=SUPPRESS_WARNINGS($BOOST_CPPFLAGS)
14401443
fi

0 commit comments

Comments
 (0)