Skip to content

Commit

Permalink
Add toolchain files to the input set
Browse files Browse the repository at this point in the history
  • Loading branch information
erenon committed Oct 6, 2024
1 parent cf312e0 commit cb45e87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clang_tidy/clang_tidy.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ def _run_tidy(
compilation_contexts,
infile,
discriminator):
cc_toolchain = find_cpp_toolchain(ctx)
inputs = depset(
direct = (
[infile, config] +
additional_deps.files.to_list() +
([exe.files_to_run.executable] if exe.files_to_run.executable else [])
),
transitive = [compilation_context.headers for compilation_context in compilation_contexts],
transitive =
[compilation_context.headers for compilation_context in compilation_contexts] +
[cc_toolchain.all_files],
)

args = ctx.actions.args()
Expand Down

0 comments on commit cb45e87

Please sign in to comment.