I wanted to try the newly released windows toolchain.
I first installed up-to-date Visual Studio dependencies listed here: https://swift.org/getting-started/#installing-swift. Afterwards I run the swift installer that installes the toolchain to
When I try to compile a basic hello world program the compiler returns the error:
D:\Dev>swiftc hello.swift clang: error: no such file or directory: 'C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift\windows\x86_64\swiftrt.obj' <unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
Also, when I try to import Foundation I get an error
cannot load underlying module for "WinSDK"
Based on those errors I suspect that the swift installer left me without the standard library + Foundation etc. While I don't exactly know what should be contained in the
Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\ directory, it does look like it's missing essential files. For example, the swift subdirectory only contains a
mitigator folder with json files that reference verious Apple OS.
I would really appreciate it If anyone could point out where did I something wrong, and how I can install the toolchain correctly.