From 83024a8a2636742783c581dc51ec99f1bfce9f76 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Wed, 17 Nov 2021 06:52:13 -0800 Subject: [PATCH] Fixed missing `cc_toolchain` issues for `rust_doc` rules --- rust/private/rustdoc.bzl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rust/private/rustdoc.bzl b/rust/private/rustdoc.bzl index 798e135b0e..eab9ced17c 100644 --- a/rust/private/rustdoc.bzl +++ b/rust/private/rustdoc.bzl @@ -306,9 +306,13 @@ rust_doc = rule( ), }, fragments = ["cpp"], + host_fragments = ["cpp"], outputs = { "rust_doc_zip": "%{name}.zip", }, - toolchains = [str(Label("//rust:toolchain"))], + toolchains = [ + str(Label("//rust:toolchain")), + "@bazel_tools//tools/cpp:toolchain_type", + ], incompatible_use_toolchain_transition = True, )