Add a fake cc_toolchain_config rule for our fake cc_toolchain to point to when Bazel doesn't need C++ toolchain configuration
The toolchain configuration rule we are currently relying on will be removed as part of #8546
RELNOTES: None.
PiperOrigin-RevId: 262952632
diff --git a/tools/cpp/BUILD.empty b/tools/cpp/BUILD.empty
index 577f0b8..fd95fc4 100644
--- a/tools/cpp/BUILD.empty
+++ b/tools/cpp/BUILD.empty
@@ -14,7 +14,7 @@
package(default_visibility = ["//visibility:public"])
-load("@bazel_tools//tools/cpp:cc_toolchain_config.bzl", "cc_toolchain_config")
+load(":cc_toolchain_config.bzl", "cc_toolchain_config")
cc_library(
name = "malloc",
@@ -47,8 +47,4 @@
strip_files = ":empty",
)
-cc_toolchain_config(
- name = "local_config",
- cpu = "local",
- compiler = "compiler",
-)
+cc_toolchain_config(name = "local_config")