Skip to content

Commit

Permalink
Minor update of bazel doc (#13715)
Browse files Browse the repository at this point in the history
Signed-off-by: Yitao Hu <harmonyharmo@users.noreply.github.com>
  • Loading branch information
harmonyharmo authored Nov 10, 2020
1 parent e90ba1f commit 1d6d68b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bazel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/):
Expand Down

0 comments on commit 1d6d68b

Please sign in to comment.