Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Boost.Stacktrace Internal Libraries as Optional in Boost.Build #195

Open
uilianries opened this issue Nov 21, 2024 · 0 comments
Open

Comments

@uilianries
Copy link

Background

The recent commit 22982db in Boost.Stacktrace's master branch shows a discrepancy between CMake and Boost.Build configuration options.

Current Situation

CMake Support

The CMakeLists.txt provides granular control over each supported library in the project:

  • Users can decide which internal libraries to build when available
  • Options are clearly exposed and configurable
  • Dependencies are properly handled

Boost.Build Support

Currently, Boost.Build only exposes stacktrace_from_exception as a configurable feature:

Problem

While CMake configuration provides flexibility, we must use Boost.Build as it's the official build system for Boost. This creates challenges for package managers like Conan.
Impact

At ConanCenterIndex, we maintain Boost packages and need to:

  • Implement additional logic to handle stacktrace's internal libraries
  • Create workarounds since libraries may or may not be built
  • Patch code from the package manager side due to lack of configuration options, to know if a backtrace library will be built or not

Request

Please consider exposing the internal libraries of Boost.Stacktrace as optional features in Boost.Build, similar to the CMake implementation. This would:

  • Provide consistent configuration options across build systems
  • Reduce the need for package manager workarounds
  • Improve user control over the build process

Additional Context

This enhancement would particularly benefit package managers and users who need fine-grained control over which stacktrace components are built.

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

No branches or pull requests

1 participant