Skip to content

Commit 72d98d7

Browse files
committed
Make sure boost's stacktrace uses addr2line
It apparently does not pick it up automatically
1 parent 0d8f608 commit 72d98d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ endif()
3232
# Always looking for stacktrace can cause problems when cross compiling
3333
# Hence, avoid finding boost if user didn't ask for it.
3434
option (EKAT_ENABLE_BOOST_STACKTRACE "Whether to enable Boost stacktrace" OFF)
35+
3536
if (EKAT_ENABLE_BOOST_STACKTRACE)
3637
message (STATUS "Looking for boost::stacktrace ...")
3738
# Stacktrace is available with Boost>=1.65
@@ -77,7 +78,7 @@ endif()
7778

7879
if (EKAT_HAS_STACKTRACE)
7980
target_link_libraries(ekat_core PUBLIC ${Boost_LIBRARIES})
80-
target_compile_definitions(ekat_core PRIVATE EKAT_HAS_STACKTRACE)
81+
target_compile_definitions(ekat_core PRIVATE EKAT_HAS_STACKTRACE BOOST_STACKTRACE_USE_ADDR2LINE)
8182
endif()
8283

8384
if (EKAT_DEFAULT_BFB)

0 commit comments

Comments
 (0)