cc_configure: declare environment variables for invalidation
And stop setting the local flag
--
Change-Id: I97c76cf78a191a5f37c8bb3cd32e78df5aeeb885
Reviewed-on: https://cr.bazel.build/8223
PiperOrigin-RevId: 147591728
MOS_MIGRATED_REVID=147591728
diff --git a/tools/cpp/cc_configure.bzl b/tools/cpp/cc_configure.bzl
index 4ce3fba..2a82763 100644
--- a/tools/cpp/cc_configure.bzl
+++ b/tools/cpp/cc_configure.bzl
@@ -706,7 +706,15 @@
})
-cc_autoconf = repository_rule(implementation=_impl, local=True)
+cc_autoconf = repository_rule(
+ implementation=_impl,
+ environ = [
+ "CC",
+ "BAZEL_VC",
+ "BAZEL_VS",
+ "BAZEL_SH",
+ "BAZEL_PYTHON",
+ "CPLUS_INCLUDE_PATH"])
def cc_configure():