aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/cpp/BUILD.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cpp/BUILD.tpl')
-rw-r--r--tools/cpp/BUILD.tpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/cpp/BUILD.tpl b/tools/cpp/BUILD.tpl
index 5ea5368c62..170fe3f91d 100644
--- a/tools/cpp/BUILD.tpl
+++ b/tools/cpp/BUILD.tpl
@@ -75,3 +75,18 @@ cc_toolchain(
strip_files = ":empty",
supports_param_files = 1,
)
+
+toolchain_type(name = "toolchain_type")
+
+# A dummy toolchain is necessary to satisfy toolchain resolution until platforms
+# are used in c++ by default.
+# TODO(b/64754003): Remove once platforms are used in c++ by default.
+toolchain(
+ name = "dummy_cc_toolchain",
+ toolchain = "dummy_cc_toolchain_impl",
+ toolchain_type = ":toolchain_type",
+)
+
+load(":dummy_toolchain.bzl", "dummy_toolchain")
+
+dummy_toolchain(name = "dummy_cc_toolchain_impl")