Skip to content

[6.0][Windows] Avoid linking with swiftWinSDK.dll #2686

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
Jun 25, 2024

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 17, 2024

Cherry-pick #2685 into release/6.0

  • Explanation: Avoid import WinSDK in swift sources or #include <windows.h> in headers. This is to avoid linking with Swift overlay library (swiftWinSDK.dll) so swift-frontend with plugins won't depends on it.
  • Scope: swift-pluign-server
  • Risk: Low. Although this adds a new component _SwiftLibraryPluginProviderCShims to the build system, it's just a static library so the final product should be equivalent, as long as the build succeeds
  • Testing: Passes current test suite
  • Issues: N/A
  • Reviewer: Saleem Abdulrasool (@compnerd)

Avoid 'import WinSDK' in swift sources or `#include` in headers.
This is to avoid linking with Swift overlay library (swiftWinSDK.dll)
so swift-frontend with plugins won't depends on it.

(cherry picked from commit d360086)
@rintaro rintaro requested review from ahoppen and bnbarham as code owners June 17, 2024 16:07
@rintaro
Copy link
Member Author

rintaro commented Jun 17, 2024

@swift-ci Please test

@rintaro rintaro merged commit 55b81e7 into swiftlang:release/6.0 Jun 25, 2024
3 checks passed
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.

3 participants