From b432f54330d7878ef2bc11bdbe8cb23646c08f4e Mon Sep 17 00:00:00 2001 From: John Cater Date: Thu, 18 Mar 2021 18:03:09 -0400 Subject: [PATCH] Add cpp toolchain requirement for rust_toolchain Part of the work on #635, but not sufficient to fix it. --- rust/toolchain.bzl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/toolchain.bzl b/rust/toolchain.bzl index 90713c4d1c..f1385a3807 100644 --- a/rust/toolchain.bzl +++ b/rust/toolchain.bzl @@ -253,6 +253,10 @@ rust_toolchain = rule( default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"), ), }, + toolchains = [ + "@bazel_tools//tools/cpp:toolchain_type", + ], + incompatible_use_toolchain_transition = True, doc = """Declares a Rust toolchain for use. This is for declaring a custom toolchain, eg. for configuring a particular version of rust or supporting a new platform.