aboutsummaryrefslogtreecommitdiffhomepage
path: root/bazel
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2017-12-19 09:09:52 -0800
committerGravatar Vijay Pai <vpai@google.com>2018-01-08 15:12:55 -0800
commit9809ce38e9f79b4e9a0b1ec1c076cce0beee1e98 (patch)
treecc5c3b950d119399570724fa705042a69092257e /bazel
parent9427eabf3bf9f1de14a3fabdc72e090dac7601e1 (diff)
Use appropriate preprocessor guards to allow building without exceptions
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 d146ca9c2c..d61eced2d9 100644
--- a/bazel/grpc_build_system.bzl
+++ b/bazel/grpc_build_system.bzl
@@ -60,6 +60,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),