aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/windows.md
diff options
context:
space:
mode:
authorGravatar Dmitry Lomov <dslomov@google.com>2016-02-19 12:58:37 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-19 14:55:32 +0000
commit6fb22be63aa29cd8103d617cad02356ffc40a272 (patch)
tree996f611cc833f6028e6b401d700de9ba787ee676 /site/docs/windows.md
parentd629bb285cafade33b40d9cde236ee87146a832e (diff)
Update windows.md with instructions to bootstrap Bazel.
Fixes #276. RELNOTES: Experimental Windows support is available. -- MOS_MIGRATED_REVID=115052789
Diffstat (limited to 'site/docs/windows.md')
-rw-r--r--site/docs/windows.md29
1 files changed, 26 insertions, 3 deletions
diff --git a/site/docs/windows.md b/site/docs/windows.md
index 038c7e1a8f..82ce2ad28b 100644
--- a/site/docs/windows.md
+++ b/site/docs/windows.md
@@ -6,6 +6,29 @@ title: Windows
Building Bazel on Windows
=========================
-Building Bazel on Windows is not currently supported, although we are actively
-working on enabling it. If you are interested in current status or ready to
-lend a hand, reach out via bazel-discuss@googlegroups.com.
+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 64bit Windows 7 or higher.
+To bootstrap Bazel on Windows, you will need:
+
+* Java JDK 8 or later
+* [msys2](https://msys2.github.io/) (need to be installed at ``C:\msys64\``).
+* Several MSYS packages (gcc, git, curl): use ``pacman`` command
+ to install those.
+
+To build Bazel:
+
+* Open MSYS2 shell.
+* Clone bazel git repository as normal.
+* Set the environment variables:
+
+```
+export JAVA_HOME="$(ls -d C:/Program\ Files/Java/jdk* | sort | tail -n 1)"
+export TMPDIR=c:/temp
+export BAZEL_SH=c:/msys64/usr/bin/bash.exe
+```
+
+* Run ``compile.sh`` in Bazel directory.
+* If all works fine, bazel will be build at ``output\bazel.exe``.