We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1531ab commit e3361c6Copy full SHA for e3361c6
src/Rootfs.jl
@@ -742,8 +742,15 @@ function choose_shards(p::AbstractPlatform;
742
error("Requested OCaml toolchain $(preferred_ocaml_version) not available in $(OCaml_builds)")
743
end
744
745
+ # Add a host-native shard, which we often need to bootstrap
746
push!(shards, find_shard("OCaml", OCaml_build, archive_type;
- target = isa(p, AnyPlatform) ? default_host_platform : p))
747
+ target=default_host_platform))
748
+
749
+ # If needed, add a cross-compiling target shard
750
+ if !isa(p, AnyPlatform) && !platforms_match(p, default_host_platform)
751
+ push!(shards, find_shard("OCaml", OCaml_build, archive_type;
752
+ target=p))
753
+ end
754
755
else
756
function find_latest_version(name)
0 commit comments