Include cc configure headers in the cache key
This PR adds a file containing builtin include directories paths as an input to every C++ compilation action. The result is that whenever these headers change (as a result of reconfiguring `cc_configure` repository rule), we include this file in the action cache key.
Fixes https://github.com/bazelbuild/bazel/issues/9296.
Closes #9295.
PiperOrigin-RevId: 266783158
diff --git a/tools/cpp/cc_configure.bzl b/tools/cpp/cc_configure.bzl
index 7e44886..072c175 100644
--- a/tools/cpp/cc_configure.bzl
+++ b/tools/cpp/cc_configure.bzl
@@ -159,6 +159,7 @@
"BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN",
"BAZEL_USE_LLVM_NATIVE_COVERAGE",
"BAZEL_LLVM",
+ "BAZEL_IGNORE_SYSTEM_HEADERS_VERSIONS",
"USE_CLANG_CL",
"CC",
"CC_CONFIGURE_DEBUG",