Releases: tinysun212/swift-windows
swift-4.1.3+mingw.20181009
Change version string to 'swift-4.1.3+mingw.20181009'
swift-4.1.3+mingw.20180930
Change version string to 'swift-4.1.3+mingw.20180930'
swift-4.1.3+cygwin.20180930
Change version string to 'swift-4.1.3+cygwin.20180930'
swift-4.0.3+cygwin.20180212
Change version string to 'swift-4.0.3+cygwin.20180212'
Swift compiler for MinGW
What is this?
- Swift compiler for Windows using MinGW-w64 toolchains.
- Support Swift language 3.1
MinGWCrt module
is included. It is a Glibc-like module for the MinGW C runtime library.
Install
- This version of Swift compiler for MinGW is included in the installer Swift for Windows 1.7.
Foundation module
is also included in the Swift for Windows 1.7.- The installer also includes the
wxSwift module
and a GUI application that helps compilation.
How to run your Swift code
-
You can run in immediate mode.
ex)swift Hello.swift
-
You can compile and run.
ex)Compile swiftc Hello.swift Run Hello.exe
Notice
Swift compiler for Cygwin
What is this?
- Swift compiler for Cygwin 64bit
- Support Swift language 3.1
Newlib module
is included. It is a Glibc-like module for the Cygwin C runtime library.
Install
- Install Cygwin v2.9.0 64bit.
- In addition to the default Cygwin package, you should select some packages.
clang (4.0.1-1), libiconv-devel (1.14-3), libicu-devel (58.2-1) - Download and extract swift-cygwin-20171014-bin.tar.gz.
- Add the Swift toolchain to your path.
export PATH=$PATH:(your swift directory)/bin
How to run your Swift code
-
You can run in immediate mode.
ex)swift Hello.swift
-
You can compile and run.
ex)Compile swiftc Hello.swift Run Hello
-
You can try to run a Foundation application.
ex)Compile swiftc TestFoundation.swift Run TestFoundation
Notice
-
Foundation module
is included. -
Compiler Source: https://github.com/tinysun212/swift-windows/releases/tag/swift-cygwin-20171014
(based on: https://github.com/apple/swift/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2017-04-09-a) -
Foundation Source: https://github.com/tinysun212/swift-corelibs-foundation/releases/tag/swift-cygwin-20171014
(based on: https://github.com/apple/swift-corelibs-foundation/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2017-04-09-a)
Swift compiler for MinGW
What is this?
- Swift compiler for Windows using MinGW-w64 toolchains.
- Support Swift language 3.1
MinGWCrt module
is included. It is a Glibc-like module for the MinGW C runtime library.
Install
- Swift compiler for Windows is included in the installer Swift for Windows ver-1.6.
- The installer also includes the
wxSwift module
and a GUI application that helps compilation.
How to run your Swift code
-
You can run in immediate mode.
ex)swift Hello.swift
-
You can compile and run.
ex)Compile swiftc Hello.swift Run Hello.exe
Notice
Foundation module
is not included. It will be uploaded separately if prepared. (Check update in https://swiftforwindows.github.io/ )- Compiler Source: https://github.com/tinysun212/swift-windows/releases/tag/swift-mingw-20170606
(based on: https://github.com/apple/swift/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2017-04-09-a)
Swift compiler for Cygwin
System Requirement
- This archive is an EXPERIMENTAL build on Cygwin 64bit.
- To compiling Swift source, you should install Cygwin 2.5.2 64bit.
- Addition to the default Cygwin packages, you should select some packages.
- Devel folder: clang (3.7.1-1) - C/C++ compiler frontend based on LLVM
- Libs folder: libiconv-devel (1.14-3) - Unicode iconv() implementation
- Libs folder: libicu-devel (57.1-1) - IBM Internationalization Components for Unicode
Install
Download and extract swift-cygwin-20160913-bin.tar.gz.
Add the Swift toolchain to your path.
export PATH=$PATH:(your swift directory)/bin
Run
You can try to run the Package Manger.
(swift test
does not work due to some bugs.)
ex)
$ mkdir Hello
$ cd Hello
$ swift package init --type executable
$ swift build
$ .build/debug/Hello
You can run in immediate mode.
ex) swift Hello.swift
You can compile and run with dynamic library
ex)
Compile
swiftc Hello.swift
Run
Hello
You can try to run a Foundation application
ex)
Compile
swiftc TestFoundation.swift -I /usr/include
Run
TestFoundation
Notice
Compiler Source: https://github.com/tinysun212/swift-windows/releases/tag/swift-cygwin-20160913
(based on: https://github.com/apple/swift/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2016-08-07-a)
Fondation Source: https://github.com/tinysun212/swift-corelibs-foundation/releases/tag/swift-cygwin-20160913
(based on: https://github.com/apple/swift-corelibs-foundation/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2016-08-07-a)
Package Manger Source: https://github.com/tinysun212/swift-package-manager/releases/tag/swift-cygwin-20160913
(based on: https://github.com/apple/swift-package-manager/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2016-08-07-a)
llbuild Source: https://github.com/tinysun212/swift-llbuild/releases/tag/swift-cygwin-20160913
(based on: https://github.com/apple/swift-llbuild/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2016-08-07-a)
Swift for Windows (MinGW)
System Requirement
- This archive is an EXPERIMENTAL build on MinGW-w64.
- To run in immediate mode, no other package is required.
- To compiling, you should install Msys2 64bit and
clang
package.
(follow the step 1 to 7 in http://msys2.github.io)- install
msys2-x86_64-20160205.exe
- pacman -Sy pacman
- pacman -Syu
- pacman -Su
- pacman -S mingw-w64-x86_64-clang
- install
Install
- Download and extract the binary swift-mingw-20160815-bin.7z.
- Add the Swift toolchain to your path.
Run
-
You can run in immediate mode.
ex)swift Hello.swift
-
You can compile and run with dynamic library
ex)Compile swiftc Hello.swift Run Hello.exe
Notice
Swift for Windows (Cygwin)
System Requirement
- This archive is an EXPERIMENTAL build on Cygwin 64bit.
- To compiling Swift source, you should install Cygwin 2.5.2 64bit.
- Addition to the default Cygwin packages, you should select some packages.
- Devel folder: clang (3.7.1-1) - C/C++ compiler frontend based on LLVM
- Libs folder: libiconv-devel (1.14-3) - Unicode iconv() implementation
- Libs folder: libicu-devel (57.1-1) - IBM Internationalization Components for Unicode
Install
Download and extract swift-cygwin-20160815-bin.tar.gz.
Add the Swift toolchain to your path
Run
You can run in immediate mode.
ex) swift Hello.swift
You can compile and run with dynamic library
ex)
Compile
swiftc Hello.swift
Run
Hello
You can compile and run with static library.
ex)
Compile
swiftc -static-stdlib Hello.swift
Run
Hello
You can try to run a Foundation application
ex)
Compile
swiftc TestFoundation.swift -I /usr/include
Run
TestFoundation
Notice
Compiler Source: https://github.com/tinysun212/swift-windows/releases/tag/swift-cygwin-20160815
(based on: https://github.com/apple/swift/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2016-08-07-a)
Fondation Source: https://github.com/tinysun212/swift-corelibs-foundation/releases/tag/swift-cygwin-20160815
(based on: https://github.com/apple/swift-corelibs-foundation/releases/tag/swift-DEVELOPMENT-SNAPSHOT-2016-08-07-a)