-
Notifications
You must be signed in to change notification settings - Fork 440
Always build SwiftSyntax as a static library #323
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
Always build SwiftSyntax as a static library #323
Conversation
b465a05
to
200167a
Compare
Waiting for a toolchain build triggered in swiftlang/swift#37710 to check if/how much the toolchain size changes because of this change. |
200167a
to
9825393
Compare
The toolchain size seems to even decrease slightly with this change because before this PR we were essentially shipping two copies of |
Instead of including `SwiftSyntax.dylib` and `SwiftSyntaxParser.dylib` in the toolchain, make all tools that depend on SwiftSyntax link against it statically. This simplifies the way SwiftSyntax is built and slightly reduces the toolchain size, because we only include on copy of SwiftSyntax (statically linked into `sk-stress-test`) instead of two copies (`SwiftSyntax.dylib` and `SwiftSyntaxParser.dylib`). rdar://83757810
9825393
to
4dbd190
Compare
@swift-ci Please test |
Build failed |
Build failed |
Instead of including
SwiftSyntax.dylib
andSwiftSyntaxParser.dylib
in the toolchain, make all tools that depend on SwiftSyntax link against it statically. This simplifies the way SwiftSyntax is built and slightly reduces the toolchain size, because we only include on copy of SwiftSyntax (statically linked intosk-stress-test
) instead of two copies (SwiftSyntax.dylib
andSwiftSyntaxParser.dylib
).rdar://83757810