diff options
author | Dmitry Lomov <dslomov@google.com> | 2015-08-31 09:31:40 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-08-31 19:13:28 +0000 |
commit | 321ff5daf582775d58ba9ed40d38f22a096fe343 (patch) | |
tree | e60439f61514326839e45efc8b258c85fc7fd674 /site | |
parent | 1d971c15941e91c585cf7c2124cff4e42bcdbd91 (diff) |
Update windows.md before Beta
--
MOS_MIGRATED_REVID=101917766
Diffstat (limited to 'site')
-rw-r--r-- | site/docs/windows.md | 73 |
1 files changed, 3 insertions, 70 deletions
diff --git a/site/docs/windows.md b/site/docs/windows.md index 8318d10a8e..3761b5c407 100644 --- a/site/docs/windows.md +++ b/site/docs/windows.md @@ -5,73 +5,6 @@ layout: documentation Building Bazel on Windows ========================= -Warning: Windows support on Bazel is still at a very early stage, many things -will not work. - -Since Bazel is written in Java, you will need a recent -[JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html). - -The Windows build process uses MSYS2, a POSIX-like environment on Windows. Grab -the [installer](http://sourceforge.net/projects/msys2/files/Base/x86_64/) -or an archived version and install. - -Next, open an MSYS2 shell (not the mingw32 or the mingw64 shell) either through -a shortcut or by running the `msys2_shell.bat`. Install the dependencies: - -```bash -pacman -S gcc mingw-w64-x86_64-gcc zip unzip git -``` - -The msys2 gcc will be used for building Bazel itself, the mingw-w64 gcc will -be used by Bazel for building C++. - -Grab the Bazel source code: - -```bash -git clone https://github.com/google/bazel.git -``` - -Then, to build: - -```bash -cd bazel && ./compile.sh -``` - -If all goes well, you should find the binary in `output/bazel`. - - -Running Bazel on Windows -======================== - -Running Bazel on Windows requires a few additional steps due to the differences -between the native POSIX environment and the Windows environment. - -First, since Bazel uses symlinks, the current Windows user needs to have the -permission to create symlinks. This permission is off by default for -non-administrator users. The easiest workaround is to run the msys2 shell -as administrator (right click shortcut -> Run As Administrator). - -Second, you need to set some environment variables: - -```bash -export MSYS=winsymlinks:nativestrict # Enable symlink support in msys2. -export BAZEL_SH="C:/msys64/usr/bin/bash" -export JAVA_HOME="$(ls -d C:/Program\ Files/Java/jdk* | sort | tail -n 1)" -``` - -Third, you need to set some Bazel options. It's easiest to put them into your -`.bazelrc`: - -```bash -cat > ~/.bazelrc << EOF -startup --batch # Server mode is not yet supported on Windows -build --compiler=windows_msys64_mingw64 -build --nobuild_runfile_links # Not ported to Windows yet. -EOF -``` - -This should be enough to run Bazel: - -```bash -./output/bazel build //examples/cpp:hello-world -``` +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. |