about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuqman Aden <laden@csclub.uwaterloo.ca>2014-06-26 20:07:44 -0400
committerLuqman Aden <laden@csclub.uwaterloo.ca>2014-06-26 20:17:24 -0400
commit8b83355f1442eccb2f3ae7f7b0f7b0b8f375f0aa (patch)
treebb23f5652704edc70499049c767cd2fd4d6f0198
parente07cec6f9a53238fea209c830c40ef16b9467a00 (diff)
downloadrust-8b83355f1442eccb2f3ae7f7b0f7b0b8f375f0aa.tar.gz
rust-8b83355f1442eccb2f3ae7f7b0f7b0b8f375f0aa.zip
README: Add instructions for building on windows.
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5927fb292d8..73e91f6b93a 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,23 @@ documentation.
 3. Read the [tutorial].
 4. Enjoy!
 
+### Building on Windows
+
+To easily build on windows we can use [MSYS2](http://sourceforge.net/projects/msys2/):
+
+1. Grab the latest MSYS2 installer and go through the installer.
+2. Now from the MSYS2 terminal we want to install the mingw64 toolchain and the other
+   tools we need.
+
+        $ pacman -S mingw-w64-i686-toolchain
+        $ pacman -S base-devel
+
+3. With that now start `mingw32_shell.bat` from where you installed MSYS2 (i.e. `C:\msys`).
+4. From there just navigate to where you have Rust's source code, configure and build it:
+
+        $ ./configure --build=i686-pc-mingw32
+        $ make && make install
+
 [repo]: https://github.com/rust-lang/rust
 [tarball]: http://static.rust-lang.org/dist/rust-nightly.tar.gz
 [tutorial]: http://doc.rust-lang.org/tutorial.html