File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -666,9 +666,16 @@ function choose_shards(p::AbstractPlatform;
666
666
error (" Requested Rust toolchain $(preferred_rust_version) not available in $(Rust_builds) " )
667
667
end
668
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
+
669
676
append! (shards, [
670
- find_shard ( " RustBase " , Rust_build, archive_type) ,
671
- find_shard ( " RustToolchain " , Rust_build, archive_type; target = p) ,
677
+ base_shard ,
678
+ toolchain_shard ,
672
679
])
673
680
674
681
if ! platforms_match (p, default_host_platform)
You can’t perform that action at this time.
0 commit comments