Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,10 @@ endif()
if(NOT MSVC)
check_linker_flag(CXX "-rdynamic" SNMALLOC_LINKER_SUPPORT_RDYNAMIC)
if (SNMALLOC_LINKER_SUPPORT_RDYNAMIC)
# Get better stack traces in CI and debug builds.
target_link_options(snmalloc INTERFACE $<${ci_or_debug}:-rdynamic>)
# Export all symbols from executables so that statically linked operator
# new/delete and malloc/free overrides are visible to shared libraries
# (e.g. libstdc++) that call through PLT. Also gives better stack traces.
target_link_options(snmalloc INTERFACE -rdynamic)
endif()
endif()

Expand Down
Loading