also adds 'context-impl=ucontext' to the b2 command line and the
BOOST_USE_UCONTEXT define as described in:
https://www.boost.org/doc/libs/1_79_0/libs/context/doc/html/context/stack/sanitizers.html
Signed-off-by: Casey Bodley <cbodley@redhat.com>
if(WITH_BOOST_VALGRIND)
list(APPEND b2 valgrind=on)
endif()
+ if(WITH_ASAN)
+ list(APPEND b2 context-impl=ucontext)
+ endif()
set(build_command
${b2} headers stage
#"--buildid=ceph" # changes lib names--can omit for static
set_target_properties(Boost::${c} PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "BOOST_USE_VALGRIND")
endif()
+ if((c MATCHES "context") AND (WITH_ASAN))
+ set_target_properties(Boost::${c} PROPERTIES
+ INTERFACE_COMPILE_DEFINITIONS "BOOST_USE_ASAN;BOOST_USE_UCONTEXT")
+ endif()
list(APPEND Boost_LIBRARIES ${Boost_${upper_c}_LIBRARY})
endforeach()
foreach(c ${Boost_BUILD_COMPONENTS})