diff options
author | Vijay Pai <vpai@google.com> | 2017-11-10 13:44:26 -0800 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2017-11-10 15:38:09 -0800 |
commit | 60409759308322e94f79df0f37f2f194e8fc212d (patch) | |
tree | 2aeef43ab8eb989669eef7890111a2813a50f2ac /bazel | |
parent | 9fbd6c1c635c48a183455c4332f292c0ef49d11a (diff) |
In bazel builds, provide an option to select non-uses of c_ares
Diffstat (limited to 'bazel')
-rw-r--r-- | bazel/grpc_build_system.bzl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl index 6cfed6b0e7..b35ca73745 100644 --- a/bazel/grpc_build_system.bzl +++ b/bazel/grpc_build_system.bzl @@ -33,6 +33,10 @@ def grpc_cc_library(name, srcs = [], public_hdrs = [], hdrs = [], native.cc_library( name = name, srcs = srcs, + defines = select({ + "//:grpc_no_ares": ["GRPC_ARES=0"], + "//conditions:default": [], + }), hdrs = hdrs + public_hdrs, deps = deps + ["//external:" + dep for dep in external_deps], copts = copts, |