aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/windows.md
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-07-28 12:47:11 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-07-29 10:09:06 +0000
commit95a54b98368a1c680c14e13d841b14a27aba01ca (patch)
tree4a4f51e0d40ac2231b27054207ff838ef574a4fd /site/docs/windows.md
parentadc2d75bfb4bc7000b69183b6053a8ce6578748e (diff)
*** Reason for rollback *** Breaks design docs links *** Original change description *** Move Bazel docs into versioned directory. * Move all Bazel docs (excluding main page, search page, and blog) into versions/master directory. * Replace all original pages with redirects. * Add Jekyll config with default_version setting to specify the default version to redirect docs to. * Add Jekyll config with version_prefix setting specific to pages under each version directory. * Update layouts to generate links to pages for the same version with the version_prefix. * Update Blaze rel... *** -- MOS_MIGRATED_REVID=128690580
Diffstat (limited to 'site/docs/windows.md')
-rw-r--r--site/docs/windows.md37
1 files changed, 35 insertions, 2 deletions
diff --git a/site/docs/windows.md b/site/docs/windows.md
index 8bf61e0e3b..ca7f0241d9 100644
--- a/site/docs/windows.md
+++ b/site/docs/windows.md
@@ -1,4 +1,37 @@
---
-layout: redirect
-redirect: docs/windows.html
+layout: documentation
+title: Windows
---
+
+Building Bazel on Windows
+=========================
+
+Windows support is highly experimental. Known issues are [marked with
+label "Windows"](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+is%3Aopen+label%3AWindows)
+on github issues.
+
+We currently support only 64 bit Windows 7 or higher and we can only compile
+msys2 binaries.
+
+To bootstrap Bazel on Windows, you will need:
+
+* Java JDK 8 or later
+* Visual Studio (Community Edition is okay, only `CL.EXE` is needed)
+* [msys2](https://msys2.github.io/) (need to be installed at
+ ``C:\tools\msys64\``).
+* Several msys2 packages. Use the ``pacman`` command to install them:
+ ``pacman -S gcc git curl zip unzip zlib-devel``
+
+To build Bazel:
+
+* Open the msys2 shell.
+* Clone the Bazel git repository as normal.
+* Set the environment variables:
+
+```bash
+export JAVA_HOME="$(ls -d C:/Program\ Files/Java/jdk* | sort | tail -n 1)"
+export BAZEL_SH=c:/tools/msys64/usr/bin/bash.exe
+```
+
+* Run ``compile.sh`` in Bazel directory.
+* If all works fine, bazel will be built at ``output\bazel.exe``.