Skip to content

Verify C++ binaries run with right stdlib#604

Open
nikobockerman wants to merge 1 commit into
mainfrom
verify-cpp-binaries-run-with-correct-stdlib
Open

Verify C++ binaries run with right stdlib#604
nikobockerman wants to merge 1 commit into
mainfrom
verify-cpp-binaries-run-with-correct-stdlib

Conversation

@nikobockerman

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 2, 2026 18:53

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 a CI/runtime guard to ensure C++ artifacts produced by the solver build actually load the intended C++ standard library at runtime (not just link against it), preventing silent fallback to system-provided libstdc++/libc++.

Changes:

  • Introduces a new mise task (cpp:verify-runtime-stdlib) that scans a CMake build directory and verifies resolved runtime library paths via ldd (Linux) / otool (macOS).
  • Integrates the verification into the C++ GitHub Actions workflow, selecting the expected runtime prefix based on the matrix (libstdc++ vs libc++, hardened vs non-hardened).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
mise-tasks/cpp/verify-runtime-stdlib.py New verifier script that inspects built binaries and asserts libstdc++/libc++ loads from an expected prefix.
.github/workflows/cpp-build-test-run.yaml Adds a workflow step to run the verifier with an expected prefix derived from the build matrix.

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

Comment thread .github/workflows/cpp-build-test-run.yaml
Comment thread mise-tasks/cpp/verify-runtime-stdlib.py Outdated
@nikobockerman nikobockerman force-pushed the verify-cpp-binaries-run-with-correct-stdlib branch from 7c1c91d to f6b0a83 Compare July 2, 2026 19:10
Copilot AI review requested due to automatic review settings July 2, 2026 19:41
@nikobockerman nikobockerman force-pushed the verify-cpp-binaries-run-with-correct-stdlib branch from f6b0a83 to e091b2b Compare July 2, 2026 19:41

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread mise-tasks/cpp/verify-runtime-stdlib.py
Comment thread mise-tasks/cpp/verify-runtime-stdlib.py Outdated
Comment thread mise-tasks/cpp/verify-runtime-stdlib.py
@nikobockerman nikobockerman force-pushed the verify-cpp-binaries-run-with-correct-stdlib branch from e091b2b to 3c44a71 Compare July 2, 2026 20:44
@nikobockerman nikobockerman requested a review from Copilot July 2, 2026 20:54

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread mise-tasks/cpp/verify-runtime-stdlib.py Outdated
@nikobockerman nikobockerman force-pushed the verify-cpp-binaries-run-with-correct-stdlib branch from 3c44a71 to d833628 Compare July 2, 2026 21:29
@nikobockerman nikobockerman requested a review from Copilot July 2, 2026 21:31

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread mise-tasks/cpp/verify-runtime-stdlib.py Outdated
@nikobockerman nikobockerman force-pushed the verify-cpp-binaries-run-with-correct-stdlib branch from d833628 to 3edc7a9 Compare July 2, 2026 22:03
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