Skip to content

Commit

Permalink
Replace the swift_module tag in the gRPC BUILD overlay with a `swif…
Browse files Browse the repository at this point in the history
…t_interop_hint`.

PiperOrigin-RevId: 388242317
  • Loading branch information
allevato authored and swiple-rules-gardener committed Aug 2, 2021
1 parent c2d2d59 commit 6ded44e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion third_party/com_github_grpc_grpc_swift/BUILD.overlay
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
load(
"@build_bazel_rules_swift//swift:swift.bzl",
"swift_binary",
"swift_interop_hint",
"swift_library",
)

Expand Down Expand Up @@ -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([
Expand Down

2 comments on commit 6ded44e

@keith
Copy link
Member

@keith keith commented on 6ded44e Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.