Skip to content

Commit

Permalink
Replace exec_tools with tools in bazel genrule. (#77510)
Browse files Browse the repository at this point in the history
As of the Bazel 6.x series, there is no difference between the
`exec_tools` and `tools`. Bazel 7 removes the `exec_tools` attribute
entirely. This commit updates to use the cannonical attribute name to
allow building `clang-tidy``with bazel 7.0.0, though it does not change
the default bazel version which remains at 6.1.2.

See also bazelbuild/bazel#19132 for more
information.
  • Loading branch information
denglesberg-splunk authored Jan 19, 2024
1 parent c6a6547 commit 3b54337
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ genrule(
srcs = ["misc/ConfusableTable/confusables.txt"],
outs = ["Confusables.inc"],
cmd = "$(location :confusable_table_builder) $(SRCS) $(OUTS)",
exec_tools = [":confusable_table_builder"],
tools = [":confusable_table_builder"],
visibility = ["//visibility:private"],
)

Expand Down

0 comments on commit 3b54337

Please sign in to comment.