We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76a9f10 commit 1489820Copy full SHA for 1489820
src/Rootfs.jl
@@ -666,9 +666,16 @@ function choose_shards(p::AbstractPlatform;
666
error("Requested Rust toolchain $(preferred_rust_version) not available in $(Rust_builds)")
667
end
668
669
+ base_shard = find_shard("RustBase", Rust_build, archive_type)
670
+ toolchain_shard = find_shard("RustToolchain", Rust_build, archive_type; target=p)
671
+
672
+ if isnothing(toolchain_shard)
673
+ error("Requested Rust toolchain $(preferred_rust_version) not available on platform $(triplet(p))")
674
+ end
675
676
append!(shards, [
- find_shard("RustBase", Rust_build, archive_type),
- find_shard("RustToolchain", Rust_build, archive_type; target=p),
677
+ base_shard,
678
+ toolchain_shard,
679
])
680
681
if !platforms_match(p, default_host_platform)
0 commit comments