Replace use of context valgrind feature.

Declare our own b2 feature for valgrind and adding the BOOST_USE_VALGRIND predef. This avoids dependency ordering problems since Beast doesn't depend on Boost.Context. Which is the lib that defines the other valgrind feature.

This change is needed to avoid build errors for this PR https://github.com/boostorg/boost/pull/854
This commit is contained in:
René Ferdinand Rivera Morell authored and Mohammad Nejati committed 2024-03-18 10:31:42 +03:30
1 parent c9afa3bbbc
commit 068f954575
1 file changed
+4 -1
+4 -1
View File
@@ -38,9 +38,12 @@ variant beast_coverage
<linkflags>"--coverage"
;
feature.feature boost.beast.valgrind : on : optional propagated composite ;
feature.compose <boost.beast.valgrind>on : <define>BOOST_USE_VALGRIND ;
variant beast_valgrind
: release
: <valgrind>on # Boost.Context uses this property
: <boost.beast.valgrind>on
;
variant beast_ubasan