Skip to content

[6.2] Binary Static Library Artifact auditing tool #8804

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

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from

Conversation

daniel-grumberg
Copy link
Contributor

Cherry picks 7c5b0bc

This is an implementation of the auditing tool described in
[SE-0482](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0482-swiftpm-static-library-binary-target-non-apple-platforms.md).

### Motivation:

As part of SE-0482 and
#8639 we
introduced the ability to depend on prebuilt static libraries (that
expose a C interface) and that don't have any dependencies outside of
the C standard library. This PR introduces an auditing tool that checks
the ABI of static library artifact bundle and checks if it's compatible
with the current host platform.

### Modifications:

- Create a new package subcommand that checks a local artifact bundle
for unexpected external dependencies.
- New internal APIs to inspect the ABI of a binary object (object file,
static archive, dynamic library).

### Result:

Users will be able to validate that their static library binary
artifacts won't cause runtime issues for users.
@daniel-grumberg
Copy link
Contributor Author

@swift-ci test self-hosted windows

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.

1 participant