Skip to content

Commit

Permalink
Add cpp toolchain requirement for rust_toolchain (#638)
Browse files Browse the repository at this point in the history
Part of the work on #635, but not sufficient to fix it.
  • Loading branch information
katre committed Mar 18, 2021
1 parent 76c4420 commit 73cb938
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 73cb938

Please sign in to comment.