From 6ded44ed4e70fcd6c110d49609890d9e06775d5d Mon Sep 17 00:00:00 2001 From: Tony Allevato Date: Mon, 2 Aug 2021 09:56:08 -0700 Subject: [PATCH] Replace the `swift_module` tag in the gRPC BUILD overlay with a `swift_interop_hint`. PiperOrigin-RevId: 388242317 --- third_party/com_github_grpc_grpc_swift/BUILD.overlay | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/third_party/com_github_grpc_grpc_swift/BUILD.overlay b/third_party/com_github_grpc_grpc_swift/BUILD.overlay index a3603f3ed..20dfcc676 100644 --- a/third_party/com_github_grpc_grpc_swift/BUILD.overlay +++ b/third_party/com_github_grpc_grpc_swift/BUILD.overlay @@ -1,6 +1,7 @@ load( "@build_bazel_rules_swift//swift:swift.bzl", "swift_binary", + "swift_interop_hint", "swift_library", ) @@ -44,15 +45,20 @@ cc_library( "Sources/CgRPC/third_party/nanopb/**/*.c", ]) + ["Sources/CgRPC/shim/internal.h"], hdrs = ["Sources/CgRPC/shim/cgrpc.h"], + aspect_hints = [":CgRPC_swift_hint"], copts = ["-DPB_NO_PACKED_STRUCTS=1"], includes = ["Sources/CgRPC/include"], - tags = ["swift_module=CgRPC"], deps = [ ":BoringSSL", "@zlib", ], ) +swift_interop_hint( + name = "CgRPC_swift_hint", + module_name = "CgRPC", +) + swift_binary( name = "protoc-gen-swiftgrpc", srcs = glob([