Skip to content
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

[5.7][PkgConfig] Avoid creating dummy dependency #5749

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

stevapple
Copy link
Contributor

Cherry-pick of #5741

Dummy dependency can be seen in some awkwardly generated .pc files and it can crash SwiftPM silently at least on Windows.

Motivation:

To enhance robustness and avoid silent crashes on Windows.

Modifications:

Ignore parsed dependency with an empty name from a .pc file.

Result:

SwiftPM will not crash when parsing dependency list like dep1, , dep2.

This can be seen in some awkwardly generated .pc files and
it can crash SwiftPM silently at least on Windows.
@neonichu
Copy link
Contributor

@swift-ci please smoke test

@tomerd tomerd merged commit 63c14b8 into swiftlang:release/5.7 Sep 1, 2022
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.

3 participants