#36269 guix: build with `_GLIBCXX_USE_DEPRECATED=0`
https://github.com/bitcoin/bitcoin/pull/36269 · · +214/-6 in 7 files, 4 commits · labels: Build system · draft
Goal
- Strip unused deprecated standard library features from Guix release builds
- Slightly reduces debug symbol overhead in release binaries
Adds `-D_GLIBCXX_USE_DEPRECATED=0` to the Guix host build compiler flags for Linux and Windows builds. This disables deprecated libstdc++ interfaces and slightly reduces debug symbol overhead in release binaries.
Problem: By default, libstdc++ enables compatibility definitions for deprecated C++ standard library features, adding unnecessary debug symbols to Guix builds.
Category: Build and CI (#51 of 55)
P4 · cleanup
- P4 because it is a minor build tweak that saves only a few bytes of debug symbols
- Addresses no bugs or security concerns with negligible impact on build times
The PR offers a cosmetic build configuration tweak that author fanquake describes as 'saves a few bytes worth of debug symbols'. It addresses no bug or security concern and has negligible impact on release binaries or build times.
Membership: Modifies Guix release build scripts under contrib/guix/libexec/ and relies on CI Guix workflow additions.
Factors: security/stability 0, bug 0, performance 0, user value 0, leverage 0
Reviewability: Ready: Review #36082 first
The PR is stacked on top of unmerged PR #36082, so reviewers will likely want to inspect the base PR first.
Author status: active
Agreement: Crickets
- No feedback or reviews yet
- Recently opened as a draft with no discussion
No feedback or reviews yet
The PR was recently opened as a draft and has had no discussion.
Review verdicts (DrahtBot): 0
Dependencies
Depends on: #36082
Files
15 lines under test/bench/ci.
- .github/workflows/guix.yml +171/-0
- .github/install-guix.sh +34/-0
- contrib/guix/libexec/prelude.bash +5/-2
- contrib/guix/libexec/build_linux.sh +1/-1
- contrib/guix/libexec/build_linux_gui.sh +1/-1
- contrib/guix/libexec/build_win.sh +1/-1
- contrib/guix/libexec/build_win_gui.sh +1/-1
Card
Adds -D_GLIBCXX_USE_DEPRECATED=0 to Guix host compiler flags for Linux and Windows builds to disable deprecated libstdc++ features. The change marginally trims debug symbol overhead in release binaries with no user-visible functional changes. It is a minor build system tweak stacked on top of open PR #36082, currently in draft with no reviews or comments.