Swift for Windows (MSVC)

@tinysun212 tinysun212 released this Apr 17, 2016 · 1393 commits to stable since this release


This archive is for TEST only under Windows 10 64bit.
This build requires the Visual C++ Redistributable for Visual Studio 2015.
For compiling, this requires SDK in Visual Studio 2015.


Download below swift-msvc-20160418-bin.zip.
Copy directory Swift in archive to C:/Program Files.
Add path environment C:/Program Files/Swift/bin.
Copy swift.exe to swiftc.exe in C:/Program Files/Swift/bin.


You can run the interpreter.
ex) swift Hello.swift

You can compile with static library. (Run in VS2015 x64 Native Tools Command Prompt)

   swiftc -c Hello.swift -o Hello.obj

   link /out:Hello.exe Hello.obj libswiftCore.lib libswiftSwiftOnoneSupport.lib
      /LIBPATH:"C:/Program Files/Swift/lib/swift_static/windows" 
      /MERGE:.rdata=.rodata  /FORCE:MULTIPLE /IGNORE:4006,4049,4217


Source: https://github.com/tinysun212/swift-windows/releases/tag/swift-msvc-20160418
(based on: https://github.com/apple/swift/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a)