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
Cherry-pick https://github.com/apple/swift-syntax/pull/2685 into
release/6.0
import WinSDK
in swift sources or#include <windows.h>
in headers. This is to avoid linking with Swift overlay library (swiftWinSDK.dll
) soswift-frontend
with plugins won't depends on it._SwiftLibraryPluginProviderCShims
to the build system, it's just a static library so the final product should be equivalent, as long as the build succeeds