Skip to content

Commit 8ea36f6

Browse files
committed
Verify linkage of SwiftSyntaxBuilder
Carefully control the linking of this library as well
1 parent bb3060b commit 8ea36f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Tests/SwiftParserTest/LinkageTests.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ final class LinkageTest: XCTestCase {
4848
.library("-lswift_Concurrency"),
4949
.library("-lswift_StringProcessing", condition: .mayBeAbsent("Starting in Xcode 14 this library is not always autolinked")),
5050
])
51+
52+
try assertLinkage(of: "SwiftSyntaxBuilder", in: baseURL, assertions: [
53+
.library("-lobjc"),
54+
.library("-lswiftCompatibility51", condition: .mayBeAbsent("Starting in Xcode 14 this library is not always autolinked")),
55+
.library("-lswiftCompatibility56", condition: .mayBeAbsent("Starting in Xcode 14 this library is not always autolinked")),
56+
.library("-lswiftCompatibilityConcurrency"),
57+
.library("-lswiftCore"),
58+
.library("-lswiftSwiftOnoneSupport", condition: .when(configuration: .debug)),
59+
.library("-lswift_Concurrency"),
60+
.library("-lswift_StringProcessing", condition: .mayBeAbsent("Starting in Xcode 14 this library is not always autolinked")),
61+
])
62+
5163
}
5264
}
5365

0 commit comments

Comments
 (0)