-
Notifications
You must be signed in to change notification settings - Fork 441
Assert the Linkage of SwiftSyntax and SwiftParser #796
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
Conversation
@swift-ci test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite clever and very good hygiene for the project, thank you!
Tests/SwiftParserTest/Linkage.swift
Outdated
try assertLinkage(of: swiftSyntaxURL) { linkages in | ||
XCTAssertEqual(linkages, [ | ||
.library("-lobjc"), | ||
.library("-lswiftCompatibilityConcurrency"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we allow-list all -lswiftCompatibility
prefixes? For example, there's a -lswiftCompatibility56
that just got introduced and will kick in sometimes.
Tests/SwiftParserTest/Linkage.swift
Outdated
try assertLinkage(of: swiftParserURL) { linkages in | ||
XCTAssertEqual(linkages, [ | ||
.library("-lobjc"), | ||
.library("-lswiftCompatibilityConcurrency"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above.
c63375d
to
5df908e
Compare
@swift-ci test |
5df908e
to
33a5e76
Compare
@swift-ci test |
We want to keep this set as minimal as possible. To that end, provide a test on Darwin that the set of link-time dependencies remains known to us. If this set expands, this test will fail and we'll be able to investigate the dependency growth.
33a5e76
to
62b4086
Compare
@swift-ci test |
Allow for linkage conditions based on the language version and build configuration.
62b4086
to
217100f
Compare
@swift-ci test |
We want to keep this set as minimal as possible. To that end, provide a test on Darwin that the set of link-time dependencies remains known to us. If this set expands, this test will fail and we'll be able to investigate the dependency growth.