Skip to content

Releases: tinysun212/swift-windows

swift-4.1.3+mingw.20181009

18 Oct 19:52
Compare
Choose a tag to compare
Change version string to 'swift-4.1.3+mingw.20181009'

swift-4.1.3+mingw.20180930

18 Oct 19:51
Compare
Choose a tag to compare
Change version string to 'swift-4.1.3+mingw.20180930'

swift-4.1.3+cygwin.20180930

18 Oct 19:51
Compare
Choose a tag to compare
Change version string to 'swift-4.1.3+cygwin.20180930'

swift-4.0.3+cygwin.20180212

11 Feb 21:21
Compare
Choose a tag to compare
Change version string to 'swift-4.0.3+cygwin.20180212'

Swift compiler for MinGW

30 Nov 23:03
Compare
Choose a tag to compare

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

14 Oct 15:25
Compare
Choose a tag to compare

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

  1. Install Cygwin v2.9.0 64bit.
  2. 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)
  3. Download and extract swift-cygwin-20171014-bin.tar.gz.
  4. 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

Swift compiler for MinGW

06 Jun 10:38
Compare
Choose a tag to compare

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

Swift compiler for Cygwin

12 Sep 22:44
Compare
Choose a tag to compare
Pre-release

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.
    1. Devel folder: clang (3.7.1-1) - C/C++ compiler frontend based on LLVM
    2. Libs folder: libiconv-devel (1.14-3) - Unicode iconv() implementation
    3. 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)

15 Aug 03:14
Compare
Choose a tag to compare
Pre-release

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)
    1. install msys2-x86_64-20160205.exe
    2. pacman -Sy pacman
    3. pacman -Syu
    4. pacman -Su
    5. pacman -S mingw-w64-x86_64-clang

Install

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)

15 Aug 03:13
Compare
Choose a tag to compare
Pre-release

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.
    1. Devel folder: clang (3.7.1-1) - C/C++ compiler frontend based on LLVM
    2. Libs folder: libiconv-devel (1.14-3) - Unicode iconv() implementation
    3. 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)