Skip to content

Validate that the examples link against the configured c and c++ standard libs#9

Merged
reutermj merged 1 commit intomainfrom
validate
Jun 28, 2025
Merged

Validate that the examples link against the configured c and c++ standard libs#9
reutermj merged 1 commit intomainfrom
validate

Conversation

@reutermj
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 28, 2025 19:21
@reutermj reutermj enabled auto-merge (squash) June 28, 2025 19:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new Python script to validate that the example binaries are linked against the correct C and C++ standard libraries and updates the GitHub Actions workflow accordingly.

  • Introduces validate_linkage.py to run linkage checks using ldd and readelf.
  • Updates the run_examples workflow to build binaries and run the linkage validation script.

Reviewed Changes

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

File Description
examples/hello_world/validate_linkage.py New script for verifying C/C++ standard library linkage for built binaries.
.github/workflows/run_examples.yml Workflow updated to build examples and run the linkage validation script.
Comments suppressed due to low confidence (1)

examples/hello_world/validate_linkage.py:74

  • Consider providing an error message or handling for unsupported C++ standard library values before returning False to improve clarity for API consumers.
    return False

@reutermj reutermj merged commit b36680f into main Jun 28, 2025
4 checks passed
@reutermj reutermj deleted the validate branch June 28, 2025 19:21
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