Skip to content

Allow building against a single dynamic swift-syntax library #8039

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

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 14, 2024

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
Copy link
Member Author

ahoppen commented Oct 14, 2024

@swift-ci Please test

@ahoppen ahoppen force-pushed the sourcekitlsp-windows-build branch from 067f457 to f324ff3 Compare October 14, 2024 18:46
@ahoppen
Copy link
Member Author

ahoppen commented Oct 14, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 14, 2024

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Oct 14, 2024

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Oct 14, 2024

@swift-ci Please test macOS

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 force-pushed the sourcekitlsp-windows-build branch from f324ff3 to 8888721 Compare October 14, 2024 20:27
@ahoppen
Copy link
Member Author

ahoppen commented Oct 14, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 14, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit a4e1869 into swiftlang:main Oct 15, 2024
5 checks passed
@ahoppen ahoppen deleted the sourcekitlsp-windows-build branch October 15, 2024 00:49
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