mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 03:05:51 +00:00
fix: Fix backtrace usage (#1932)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
if (Boost_STACKTRACE_FOUND)
|
||||
if ("${san}" STREQUAL "")
|
||||
target_compile_definitions(clio_options INTERFACE BOOST_STACKTRACE_LINK)
|
||||
target_compile_definitions(clio_options INTERFACE BOOST_STACKTRACE_USE_BACKTRACE)
|
||||
find_package(libbacktrace REQUIRED CONFIG)
|
||||
@@ -7,4 +7,5 @@ else ()
|
||||
# capabilities and there are conflicts. In any case, this makes sure Clio code knows that backtrace is not available.
|
||||
# See relevant conan profiles for sanitizers where we disable stacktrace in Boost explicitly.
|
||||
target_compile_definitions(clio_options INTERFACE CLIO_WITHOUT_STACKTRACE)
|
||||
message(STATUS "Sanitizer enabled, disabling stacktrace")
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user