Skip to content

Commit

Permalink
Add native compilation instructions for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Koromix committed Jan 12, 2015
1 parent 73b750c commit 19b898b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ It currently runs on Linux and Windows only.
# Build instructions

You can download a source release from the release page on GitHub or clone the repository.
Pre-built binaries are available for Windows.

ty can be built using GCC. Clang is not supported yet.

Expand Down Expand Up @@ -60,7 +61,19 @@ cmake -DCMAKE_BUILD_TYPE=Debug ../..

Pre-built binaries are provided in the releases section.

You will need to install CMake and MinGW (with make) to build ty under Windows. Visual Studio is not supported at the moment.
### Native compilation

You need to install CMake and MinGW-w64 to build ty under Windows. Visual Studio is not supported at the moment, nor is the historical MinGW toolchain.

To install MinGW-w64, the [TDM-GCC](http://tdm-gcc.tdragon.net/) package is probably the easiest option.
Make sure to use the TDM64 MinGW-w64 edition.

Open a console, go to the project directory and execute:
```bash
mkdir build\win32 && cd build\win32
cmake -G "MinGW Makefiles" ..\..
mingw32-make
```

### Cross-compilation

Expand Down

0 comments on commit 19b898b

Please sign in to comment.