From cb45e875ca96ca8fae9d237690e74e6a1535fb1b Mon Sep 17 00:00:00 2001 From: Benedek Thaler Date: Fri, 4 Oct 2024 12:22:33 +0200 Subject: [PATCH] Add toolchain files to the input set --- clang_tidy/clang_tidy.bzl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clang_tidy/clang_tidy.bzl b/clang_tidy/clang_tidy.bzl index 0b11752..60b4aed 100644 --- a/clang_tidy/clang_tidy.bzl +++ b/clang_tidy/clang_tidy.bzl @@ -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()