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
  • Loading branch information
tetromino committed Aug 7, 2023
1 parent 15e7ed1 commit 2dc3ff3
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 2dc3ff3

Please sign in to comment.