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

Allow building against a single dynamic swift-syntax library 🚥#851 #852

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 14, 2024

Depends on #851


When SWIFTSYNTAX_BUILD_DYNAMIC_LIBRARY is specified, change swift-syntax dependencies to depend on a single _SwiftSyntaxDynamic product instead of separate products for each module.

This allows us to build SourceKit-LSP on Windows using SwiftPM without exceeding the maximum symbol limit and thus run SourceKit-LSP tests on Windows.

See swiftlang/sourcekit-lsp#1754 and swiftlang/swift-syntax#2879.

This allows us to build everything required for the executable using CMake and only the test targets using SwiftPM, enabling us to run tests on Windows from build.ps1 with minimal overhead.
When `SWIFTSYNTAX_BUILD_DYNAMIC_LIBRARY` is specified, change swift-syntax dependencies to depend on a single `_SwiftSyntaxDynamic` product instead of separate products for each module.

This allows us to build SourceKit-LSP on Windows using SwiftPM without exceeding the maximum symbol limit and thus run SourceKit-LSP tests on Windows.

See swiftlang/sourcekit-lsp#1754 and swiftlang/swift-syntax#2879.
@ahoppen ahoppen merged commit b267bee into swiftlang:main Oct 14, 2024
15 checks passed
@ahoppen ahoppen deleted the sourcekit-lsp-windows-build branch October 14, 2024 16:18
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.

2 participants