Adding support for Windows as a Platform

Hi all,

I've been making progress on Windows support for SPM, and one of the things I'd like to add now is adding Windows as a supported platform in the Package Description. Since would change the public API, I wanted to check in if anyone thought this would need a proposal or had any opinions, or if it was small enough to do without.

PR: Add Windows as a Supported Platform by gmittert · Pull Request #2382 · apple/swift-package-manager · GitHub
Context: Added a .windows platform by gmittert · Pull Request #2362 · apple/swift-package-manager · GitHub

27 Likes

Nice!

Does that mean package manager is usable today on windows?

1 Like

Unfortunately, it'll be a while yet still, this is just one step towards that. Current status is that it runs locally for me on Windows and I can build projects (llbuild and indexstoredb, and SwiftPM itself for example) on Windows, but I have a lot of patches that still need to be merged, and some additional work on SwiftPM itself to handle dynamic linking on Windows, since Swift doesn't fully support static linking on Windows yet.

1 Like

I asked some SwiftPM contributors. This is good to land without a proposal.

7 Likes