From e07926b88257219c74ce65e3b7f2453fa68f472f Mon Sep 17 00:00:00 2001 From: Chris Cummins Date: Tue, 30 Mar 2021 22:15:00 +0100 Subject: [PATCH] Bump bazel requirement to 4.0.0. This is required to build grpcio 1.36.0. Issue #162. --- .bazelversion | 2 +- README.md | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.bazelversion b/.bazelversion index fd2a01863f..fcdb2e109f 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -3.1.0 +4.0.0 diff --git a/README.md b/README.md index 8ebc65c641..891aa2aeee 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,20 @@ newer equivalents). ### Building from Source -If you prefer, you may build from source. This requires a modern C++ toolchain. -On macOS you can use the system compiler. On linux, install the required -toolchain using: +If you prefer, you may build from source. This requires a modern C++ toolchain +and bazel. + +On macOS you can use the system compiler and install +[bazelisk](https://github.com/bazelbuild/bazelisk) using +[homebrew](https://docs.brew.sh/Installation): + + $ brew install bazelisk + +On linux, install the required toolchain using: $ sudo apt install clang libtinfo5 patchelf + $ wget https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-linux-amd64 -O bazel && chmod +x bazel + $ sudo mv bazel /usr/local/bin $ export CC=clang $ export CXX=clang++