Skip to content

Conversation

gpalino
Copy link
Contributor

@gpalino gpalino commented Sep 24, 2025

I have an use case to compile an application, fetch the cpptrace and necessary libdwarf. But I don't need to produce compressed debug sections in DWARF format. So fetching and compiling zstd is a waste of time and space IMO.
I added option CPPTRACE_ENABLE_DEBUG_DECOMPRESSION (which is default ON), to be able to disable fetching of zstd both in cpptrace and libdwarf.

Copy link
Owner

@jeremy-rifkin jeremy-rifkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I think most users should just build with compression support even if they aren't compiling with compressed debug symbols (though that being said, maybe consider compressing your debug symbols? iirc it can actually speed up link time). But, having a flag here doesn't hurt too much. One comment on naming and then happy to merge :)

option(CPPTRACE_USE_EXTERNAL_LIBDWARF "" OFF)
option(CPPTRACE_FIND_LIBDWARF_WITH_PKGCONFIG "" OFF)
option(CPPTRACE_USE_EXTERNAL_ZSTD "" OFF)
option(CPPTRACE_ENABLE_DEBUG_DECOMPRESSION "" ON)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe CPPTRACE_ENABLE_LIBDWARF_COMPRESSION_SUPPORT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants