Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit 9f2a5f9

Browse files
authored
doc: document macOS workarounds (#1323)
1 parent 2083c29 commit 9f2a5f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

quickstart/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,18 @@ If you are using Windows or macOS there are additional instructions at the end o
6161
gRPC [requires][grpc-roots-pem-bug] an environment variable to configure the trust store for SSL certificates, you
6262
can download and configure this using:
6363

64-
```console
64+
```bash
6565
curl -Lo roots.pem https://raw.githubusercontent.com/grpc/grpc/master/etc/roots.pem
6666
export GRPC_DEFAULT_SSL_ROOTS_FILE_PATH="$PWD/roots.pem"
6767
```
6868

69+
To workaround a [bug in Bazel][bazel-grpc-macos-bug], gRPC requires this flag on macOS builds, you can add the option
70+
manually or include it in your `.bazelrc` file:
71+
72+
```bash
73+
bazel build --copt=-DGRPC_BAZEL_BUILD ...
74+
```
75+
6976
### Windows
7077

7178
gRPC [requires][grpc-roots-pem-bug] an environment variable to configure the trust store for SSL certificates, you
@@ -85,3 +92,4 @@ set GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=%cd%\roots.pem
8592
[choco-cmake-link]: https://chocolatey.org/packages/cmake
8693
[homebrew-cmake-link]: https://formulae.brew.sh/formula/cmake
8794
[cmake-download-link]: https://cmake.org/download/
95+
[bazel-grpc-macos-bug]: https://github.com/bazelbuild/bazel/issues/4341

0 commit comments

Comments
 (0)