Files
eagle0/third_party/grpc/patches/disable_xds_client_layering_check.patch
T

53 lines
1.5 KiB
Diff

diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl
index 9bf4910f93..ef23ac73f9 100644
--- a/bazel/grpc_build_system.bzl
+++ b/bazel/grpc_build_system.bzl
@@ -131,7 +131,8 @@ def grpc_cc_library(
tags = [],
linkopts = [],
- linkstatic = False):
+ linkstatic = False,
+ features = []):
"""An internal wrapper around cc_library.
Args:
@@ -150,6 +151,7 @@ def grpc_cc_library(
linkopts: Extra libraries to link.
linkstatic: Whether to enable linkstatic on the cc_library.
+ features: Features to apply to the rule.
"""
visibility = _update_visibility(visibility)
copts = []
@@ -199,6 +201,7 @@ def grpc_cc_library(
data = data,
tags = tags,
linkstatic = linkstatic,
+ features = features,
)
def grpc_proto_plugin(name, srcs = [], deps = []):
diff --git a/src/core/BUILD b/src/core/BUILD
index 4bfa5d5f8d..044e708c7f 100644
--- a/src/core/BUILD
+++ b/src/core/BUILD
@@ -6523,6 +6523,7 @@ grpc_cc_library(
"@com_google_protobuf//upb/message",
],
tags = ["nofixdeps"],
+ features = ["-layering_check"],
visibility = ["//bazel:xds_client_grpc"],
deps = [
"certificate_provider_factory",
diff --git a/BUILD b/BUILD
index 75bb909586..1a4bed511e 100644
--- a/BUILD
+++ b/BUILD
@@ -5135,6 +5135,7 @@ grpc_cc_library(
"@com_google_protobuf//upb/mem",
],
visibility = ["//bazel:grpclb"],
+ features = ["-layering_check"],
deps = [
"call_tracer",
"channel_arg_names",