Skip to content

Commit cb45e87

Browse files
committed
Add toolchain files to the input set
1 parent cf312e0 commit cb45e87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang_tidy/clang_tidy.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ def _run_tidy(
1111
compilation_contexts,
1212
infile,
1313
discriminator):
14+
cc_toolchain = find_cpp_toolchain(ctx)
1415
inputs = depset(
1516
direct = (
1617
[infile, config] +
1718
additional_deps.files.to_list() +
1819
([exe.files_to_run.executable] if exe.files_to_run.executable else [])
1920
),
20-
transitive = [compilation_context.headers for compilation_context in compilation_contexts],
21+
transitive =
22+
[compilation_context.headers for compilation_context in compilation_contexts] +
23+
[cc_toolchain.all_files],
2124
)
2225

2326
args = ctx.actions.args()

0 commit comments

Comments
 (0)