3 ms·
> That being said, you can use Swift through WSL, but not directly on Windows. I thought so too, but i've checked the instructions to build on windows, and now
by oscargrouch 8y ago
> That being said, you can use Swift through WSL, but not directly on Windows.
I thought so too, but i've checked the instructions to build on windows, and now there's a way to build it natively using Visual Studio cl(or clang-cl).
Following the instructions here, it worked for me.
https://github.com/apple/swift/blob/master/docs/WindowsBuild.md https://github.com/apple/swift/blob/master/docs/WindowsBuild...
- favorited 8y agoFor the record, "official" support is still not there because there's no CI environment for Windows (currently only macOS and a few versions of Ubuntu have CI). So changes aren't guaranteed to not break other platforms. There's upstream (in-tree) support for Darwin, Linux, Windows, Cygwin, FreeBSD, Android, PS4, and Haiku. But most of those don't have CI support yet. Same is true for architectures. There's support for ARM, i386, x86_64, PPC64 (BE + LE), and s390x. IIRC there's been some talk about how to extend the CI infrastructure to support more executor environments, but so far I don't think it's been a high enough priority.
- J0-nas 8y agoI also tried it, and it didn't work for me. I asked about the error message in the swift forum and got no response... Using the prebuilt binary for ubuntu with the WSL is WAY more userfriendly. Another problem problem is proper tooling. So far my experience with the LSP implementation is a bit dissapointing..