I corrected this right away, although I'm not sure it had an effect at all (see below). This ends up passing an invalid path for the option. For example: > swiftc hello.swift -o hello.exe %SWIFTFLAGS%įirst of all, notice there is a '%' character missing in front of SDKROOT in the "-L" option. The intent is to add %SWIFTFLAGS% on the end of any command line. The Getting Started - On Windows documentation says extra parameters are needed on the command line for REPL, and recommends defining a SWIFTFLAGS environment variable: set SWIFTFLAGS=-sdk %SDKROOT% -I %SDKROOT%/usr/lib/swift -L SDKROOT%/usr/lib/swift/windows I thought I would share my notes here in case anyone else runs into the same or similar issues. Some of the issues were caused by errors in the documentation. I did some troubleshooting and learned a few things that helped me get it all working. I ran into a few issues installing and using the Swift 5.3.3 toolchain on Windows 10, some of which are mentioned in other posts but never fully explained.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |