diff options
author | 2017-08-30 18:44:20 +0200 | |
---|---|---|
committer | 2017-08-31 13:36:14 +0200 | |
commit | 2b983bdf508e010a3d4ee9dbaf446b7666749799 (patch) | |
tree | 6029afbc0bf8114044958d1d900c617e8b8a428f /tools/cpp/BUILD.static | |
parent | f12402b2627f8eeb70ee24f457efe007206f9b42 (diff) |
Rollforward of c++ toolchain-relevant BUILD file and Bazel mocking changes. That is, a c++ toolchain is added, but a Bazel dependency on that toolchain is not.
PiperOrigin-RevId: 167006332
Diffstat (limited to 'tools/cpp/BUILD.static')
-rw-r--r-- | tools/cpp/BUILD.static | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/cpp/BUILD.static b/tools/cpp/BUILD.static index 9ae4950d80..aaadc5bad8 100644 --- a/tools/cpp/BUILD.static +++ b/tools/cpp/BUILD.static @@ -115,3 +115,18 @@ filegroup( name = "link_dynamic_library", srcs = ["link_dynamic_library.sh"], ) + +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") |