Skip to content

Define GLIBCXX_DEBUG in Debug builds with libstdc++#605

Open
nikobockerman wants to merge 1 commit into
mainfrom
use-glibc-debug
Open

Define GLIBCXX_DEBUG in Debug builds with libstdc++#605
nikobockerman wants to merge 1 commit into
mainfrom
use-glibc-debug

Conversation

@nikobockerman

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 3, 2026 08:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds libstdc++ debug-mode compilation support in CI by defining _GLIBCXX_DEBUG for Debug presets, improving runtime checking for STL usage in debug builds.

Changes:

  • Introduces a hidden preset (_ci-libstdc++-debug) that provides -D_GLIBCXX_DEBUG via an environment variable.
  • Updates Ubuntu libstdc++ Debug CI presets (clang+libstdc++ and gcc+libstdc++) to include that flag in CMAKE_CXX_FLAGS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/files/CMakeUserPresets.json
"name": "_ci-libstdc++-debug",
"hidden": true,
"environment": {
"PRESET_CXX_FLAGS_LIBSTDCPP_DEBUG": "-D_GLIBCXX_DEBUG"
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