Skip to content

Commit

Permalink
Switch third_party/grpc from deprecated cfg = "host" to cfg = "exec"
Browse files Browse the repository at this point in the history
Removes a blocker for buildimg Bazel itself with --incompatible_disable_starlark_host_transition -
and unblocks bazelbuild/stardoc#145

Partial commit for third_party/*, see #19192.

Signed-off-by: Pavan Singh <[email protected]>
  • Loading branch information
tetromino authored and Pavank1992 committed Aug 8, 2023
1 parent 6504a25 commit 1f15b87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 602 deletions.
4 changes: 2 additions & 2 deletions third_party/grpc/bazel/generate_cc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ generate_cc = rule(
"plugin": attr.label(
executable = True,
providers = ["files_to_run"],
cfg = "host",
cfg = "exec",
),
"flags": attr.string_list(
mandatory = False,
Expand All @@ -166,7 +166,7 @@ generate_cc = rule(
"protoc": attr.label(
mandatory = True,
executable = True,
cfg = "host",
cfg = "exec",
),
},
# We generate .h files, so we need to output to genfiles.
Expand Down
Loading

0 comments on commit 1f15b87

Please sign in to comment.