Skip to content

Commit

Permalink
Replace use of context valgrind feature.
Browse files Browse the repository at this point in the history
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 boostorg/boost#854
  • Loading branch information
grafikrobot authored Mar 17, 2024
1 parent c9afa3b commit bdbb196
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdbb196

Please sign in to comment.