From 1d6d68bd659a78ad53b46799efa2f810c3eb2dd7 Mon Sep 17 00:00:00 2001 From: Yitao Hu Date: Tue, 10 Nov 2020 01:09:27 -0500 Subject: [PATCH] Minor update of bazel doc (#13715) Signed-off-by: Yitao Hu --- bazel/README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bazel/README.md b/bazel/README.md index 024e4b88b49d..6980607d8c88 100644 --- a/bazel/README.md +++ b/bazel/README.md @@ -83,10 +83,15 @@ for how to update or override dependencies. echo "build --config=clang" >> user.bazelrc ``` - Note: Either `libc++` or `libstdc++-7-dev` (or higher) must be installed. These are typically - available via a package manager, but may not be available in default repositories depending on - OS version. To build against `libc++` build with the `--config=libc++` instead of the - `--config=clang` flag. + Note: Either `libc++` or `libstdc++-7-dev` (or higher) must be installed. + + #### Config Flag Choices + Different [config](https://docs.bazel.build/versions/master/guide.html#--config) flags specify the compiler libraries: + + - `--config=libc++` means using `clang` + `libc++` + - `--config=clang` means using `clang` + `libstdc++` + - no config flag means using `gcc` + `libstdc++` + ### macOS On macOS, you'll need to install several dependencies. This can be accomplished via [Homebrew](https://brew.sh/):