One can build and run Swift natively or through the Windows Subsystem for Linux.
Currently there are two supported ways to build Swift for Windows.
-
To cross-compile Swift for Windows from another host operating system (using
clang
), see Cross Compiling for Windows -
To build on Windows using Microsoft Visual C++ (MSVC), see Building on Windows
Windows Subsystem for Linux is an Ubuntu environment. Follow the instructions for building on Linux