Readers of this thread may be interested to know that SwiftPM can cross‐compile to Windows out of WSL. I have already begun shifting the my CI scripts to this method, and there are more details in this thread. It is still more complicated than a native SwiftPM build, but it is significantly less complicated than setting up CMake. Since SwiftPM is what builds SwiftPM, it should also make it much easier to contribute its native Windows port if anyone is interested.
4 Likes