aboutsummaryrefslogtreecommitdiffhomepage
path: root/bazel
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-01-15 10:54:18 -0800
committerGravatar GitHub <noreply@github.com>2018-01-15 10:54:18 -0800
commit69d3e0984da394d1ea06edbe26de76d124c6eaf3 (patch)
treef28ff3ce0f779b227226272146cdec7d66cb411a /bazel
parente1e562eb171c81fad24176e898cc4e722bee227b (diff)
parent75005775938c8844d42946f92b052fd1be79a0a9 (diff)
Merge pull request #13815 from vjpai/catcher
C++: Catch exceptions from sync method handlers rather than crashing server
Diffstat (limited to 'bazel')
-rw-r--r--bazel/grpc_build_system.bzl4
1 files changed, 4 insertions, 0 deletions
diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl
index 2560519284..3d3f738610 100644
--- a/bazel/grpc_build_system.bzl
+++ b/bazel/grpc_build_system.bzl
@@ -63,6 +63,10 @@ def grpc_cc_library(name, srcs = [], public_hdrs = [], hdrs = [],
defines = select({"//:grpc_no_ares": ["GRPC_ARES=0"],
"//conditions:default": [],}) +
select({"//:remote_execution": ["GRPC_PORT_ISOLATED_RUNTIME=1"],
+ "//conditions:default": [],}) +
+ select({"//:grpc_allow_exceptions": ["GRPC_ALLOW_EXCEPTIONS=1"],
+ "//:grpc_disallow_exceptions":
+ ["GRPC_ALLOW_EXCEPTIONS=0"],
"//conditions:default": [],}),
hdrs = _maybe_update_cc_library_hdrs(hdrs + public_hdrs),
deps = deps + _get_external_deps(external_deps),