From f1b933ce7fe36d150d21f03ad60a88c63a92b350 Mon Sep 17 00:00:00 2001 From: Alexander Polcyn Date: Thu, 11 Jan 2018 09:47:18 -0800 Subject: [PATCH] Avoid building c-ares lib when grpc_no_ares is true --- bazel/grpc_build_system.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl index d146ca9c2ca..9a3b7613445 100644 --- a/bazel/grpc_build_system.bzl +++ b/bazel/grpc_build_system.bzl @@ -31,6 +31,9 @@ def _get_external_deps(external_deps): for dep in external_deps: if dep == "nanopb": ret.append("//third_party/nanopb") + elif dep == "cares": + ret += select({"//:grpc_no_ares": [], + "//conditions:default": ["//external:cares"],}) else: ret.append("//external:" + dep) return ret