Link to correct Download Bazel in tutorial
Closes
@@ -31,7 +31,7 @@ libraries have been installed.
Set up your build environment as follows:
1. If you have not already done so,
- [download and install Bazel 0.23](install-ubuntu.html) or later.
+ [download and install Bazel 0.23](../install-ubuntu.html) or later.
2. Download the
[example C++ project](https://github.com/bazelbuild/examples/tree/master/cpp-tutorial/stage1)
@@ -244,7 +244,7 @@ using an older release of Bazel, look for the "Configuring CROSSTOOL" tutorial.
# toolchain/cc_toolchain_config.bzl:
load("@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "tool_path")
- def impl(ctx):
+ def _impl(ctx):
tool_paths = [
tool_path(
name = "gcc",
@@ -276,7 +276,7 @@ using an older release of Bazel, look for the "Configuring CROSSTOOL" tutorial.
),
tool_path(
name = "strip",
- path: "/bin/false",
+ path = "/bin/false",
),
]
return cc_common.create_cc_toolchain_config_info(
@@ -289,7 +289,7 @@ using an older release of Bazel, look for the "Configuring CROSSTOOL" tutorial.
compiler = "emscripten",
abi_version = "unknown",
abi_libc_version = "unknown",
- tool_paths = tools,
+ tool_paths = tool_paths,
)
```
@@ -318,14 +318,14 @@ using an older release of Bazel, look for the "Configuring CROSSTOOL" tutorial.
http_archive(
name = 'emscripten_toolchain',
url = 'https://github.com/kripken/emscripten/archive/1.37.22.tar.gz',
- build_file = 'emscripten-toolchain.BUILD',
+ build_file = '//:emscripten-toolchain.BUILD',
strip_prefix = "emscripten-1.37.22",
)
http_archive(
name = 'emscripten_clang',
url = 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/tag/linux_64bit/emscripten-llvm-e1.37.22.tar.gz',
- build_file = 'emscripten-clang.BUILD',
+ build_file = '//:emscripten-clang.BUILD',
strip_prefix = "emscripten-llvm-e1.37.22",
)
```
