diff options
author | Googler <noreply@google.com> | 2015-04-30 21:38:04 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-05-01 22:22:55 +0000 |
commit | 3fb27ca6770ba3239955ab7c37fad979d0df04e2 (patch) | |
tree | 4f0eaea74cf96950a3f87a0a6748e53d3aec8f59 /site/docs/windows.md | |
parent | 59682ac224651eafb52c0804159c072ff2bd43ab (diff) |
Improvements to bazel.io.
* Move sidebar nav on docs and community pages to left side so that the sidebar shows at the top of the page in mobile. Improve appearance of sidebar nav.
* Highlight navbar link depending on current page.
* Switch Markdown renderer to Redcarpet to enable Pygments highlighting of fenced code blocks (```python etc.) such as on Skylark Cookbook page.
* Change ```build to ```python on Skylark cookbook page.
* Minor aesthetic tweaks to Install page
* Make style of Feedburner widget consistent with rest of page.
* Remove use of site_root from layouts and pages since it is no longer necessary after kchodorow@ added JS to redirect from github.google.com/bazel to bazel.io
--
MOS_MIGRATED_REVID=92494349
Diffstat (limited to 'site/docs/windows.md')
-rw-r--r-- | site/docs/windows.md | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/site/docs/windows.md b/site/docs/windows.md index 967e33ce82..030a7faca1 100644 --- a/site/docs/windows.md +++ b/site/docs/windows.md @@ -18,18 +18,24 @@ 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: - pacman -S libarchive-devel gcc mingw-w64-x86_64-gcc zip unzip git +```bash +pacman -S libarchive-devel 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: - git clone https://github.com/google/bazel.git +```bash +git clone https://github.com/google/bazel.git +``` Then, to build: - cd bazel && ./compile.sh +```bash +cd bazel && ./compile.sh +``` If all goes well, you should find the binary in `output/bazel`. @@ -47,19 +53,25 @@ as administrator (right click shortcut -> Run As Administrator). Second, you need to set some environment variables: - 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)" +```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`: - 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 +```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: - ./output/bazel build //examples/cpp:hello-world +```bash +./output/bazel build //examples/cpp:hello-world +``` |