Windows,docs: info about 0.6.0 boostrapping bug
Remove info about older versions' bootstrapping
bugs, because we want people to use the latest
version.
@@ -45,41 +45,31 @@ You can build Bazel from source following these steps:
## Note to Windows users
-Make sure your machine meets the [requirements](windows.html).
+Make sure your machine meets the [requirements](windows.html) and that you use
+the latest version of the sources (`bazel-0.X.Y-dist.zip`).
-Depending on the Bazel version you compile:
+There's a bug in the compilation scripts in `bazel-0.6.0-dist.zip` and in
+`bazel-0.6.1-dist.zip`:
-* `bazel-0.5.4-dist.zip` and newer:
+To fix it:
- The compilation script uses Visual C++ to compile Bazel's C++ code. The
- resulting Bazel binary is a native Windows binary and it's not linked to
- `msys-2.0.dll`.
+* either apply the changes in
+ [e79a110](https://github.com/bazelbuild/bazel/commit/e79a1107d90380501102990d82cbfaa8f51a1778)
+ to the source tree,
-* `bazel-0.5.0-dist.zip` through `bazel-0.5.3-dist.zip`:
-
- The compilation script uses GCC to build Bazel's C++ code. The resulting
- Bazel binary is an msys binary so it is linked to `msys-2.0.dll`.
-
- You can patch the compilation script to build Bazel using Visual C++ instead
- of GCC, and avoid linking it to `msys-2.0.dll`. The patch is to replace
- these lines in `./compile.sh`:
+* or just replace the following line in
+ `src/main/native/windows/build_windows_jni.sh`:
```sh
- if [[ $PLATFORM == "windows" ]]; then
- EXTRA_BAZEL_ARGS="${EXTRA_BAZEL_ARGS-} --cpu=x64_windows_msys --host_cpu=x64_windows_msys"
- fi
+ @CL /O2 /EHsc /LD /Fe:"$(cygpath -a -w ${DLL})" /I "${VSTEMP}" /I . ${WINDOWS_SOURCES[*]}
```
- with these lines:
+ with this line:
```sh
- if [[ $PLATFORM == "windows" ]]; then
- EXTRA_BAZEL_ARGS="${EXTRA_BAZEL_ARGS-} --cpu=x64_windows_msvc --host_cpu=x64_windows_msvc"
- fi
+ @CL /O2 /EHsc /LD /Fe:"$(cygpath -a -w ${DLL})" /I "%TMP%" /I . ${WINDOWS_SOURCES[*]}
```
-* `bazel-0.4.5-dist.zip` and earlier:
-
- The compilation script uses GCC to compile Bazel's C++ code. The resulting
- Bazel binary is an msys binary so it is linked to `msys-2.0.dll`. Bazel
- cannot be built using Visual C++.
+It suffices to do one of these to bootstrap Bazel. We however recommend
+applying the full commit (e79a110) because it also adds extra environment
+checks to `./compile.sh`.
