Skip to content

Commit 48f97b3

Browse files
authored
Remove toolchain._crosstool field (#1125)
We use the equivalent `toolchain._cc_toolchain` attribute instead
1 parent 45ef635 commit 48f97b3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rust/toolchain.bzl

+1-4
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def _rust_toolchain_impl(ctx):
303303
target_arch = ctx.attr.target_triple.split("-")[0],
304304
default_edition = ctx.attr.default_edition,
305305
compilation_mode_opts = compilation_mode_opts,
306-
crosstool_files = ctx.files._crosstool,
306+
crosstool_files = ctx.files._cc_toolchain,
307307
libstd_and_allocator_ccinfo = _make_libstd_and_allocator_ccinfo(ctx, rust_std, ctx.attr.allocator_library),
308308
_rename_first_party_crates = rename_first_party_crates,
309309
_third_party_dir = third_party_dir,
@@ -422,9 +422,6 @@ rust_toolchain = rule(
422422
"_cc_toolchain": attr.label(
423423
default = "@bazel_tools//tools/cpp:current_cc_toolchain",
424424
),
425-
"_crosstool": attr.label(
426-
default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"),
427-
),
428425
"_rename_first_party_crates": attr.label(
429426
default = "@rules_rust//rust/settings:rename_first_party_crates",
430427
),

0 commit comments

Comments
 (0)