aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Kerrick Staley <kstaley@lyft.com>2018-06-25 08:56:19 -0700
committerGravatar GitHub <noreply@github.com>2018-06-25 08:56:19 -0700
commit4fb53784fbc19077ae47b49525f3ee6cae66bf6f (patch)
tree020a653b41e8fa91130deebb156aae2e3fb495f3 /src/cpp
parent3acf8e62079e727ae1925be759fa917f10e982bb (diff)
Fix Bazel build instructions
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cpp/README.md b/src/cpp/README.md
index f16cab1f44..4ec9133c59 100644
--- a/src/cpp/README.md
+++ b/src/cpp/README.md
@@ -18,12 +18,16 @@ To add gRPC as a dependency in bazel:
2. Use the [http_archive](https://docs.bazel.build/versions/master/be/workspace.html#http_archive) bazel rule to include gRPC source
```
http_archive(
- name = "grpc",
+ name = "com_github_grpc_grpc",
urls = [
"https://github.com/grpc/grpc/archive/YOUR_GRPC_COMMIT_SHA.tar.gz",
],
strip_prefix = "grpc-YOUR_GRPC_COMMIT_SHA",
)
+
+ load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
+
+ grpc_deps()
```
NOTE: currently bazel is only supported for building gRPC on Linux.