Skip to content

Commit f1bf8e5

Browse files
committed
Test OCaml on more platforms.
1 parent e85391e commit f1bf8e5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/building.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,22 @@ shards_to_test = expand_cxxstring_abis(expand_gfortran_versions(shards_to_test))
147147
platforms_match(shard, Platform("riscv64", "linux")))
148148
# Rust is broken on 32-bit Windows and unavailable on FreeBSD AArch64 and Linux RISC-V, let's skip it
149149
push!(products, ExecutableProduct("hello_world_rust", :hello_world_rust))
150-
push!(products, ExecutableProduct("hello_world_ocaml", :hello_world_ocaml))
151150
end
152151

153152
compilers = [:c, :go]
154153
# Don't even ask for Rust on FreeBSD AArch64 and Linux RISC-V
155154
if !(platforms_match(shard, Platform("aarch64", "freebsd")) ||
156155
platforms_match(shard, Platform("riscv64", "linux")))
157156
push!(compilers, :rust)
157+
end
158+
159+
# OCaml is not available on 32-bit platforms, and our shards aren't for FreeBSD
160+
if !(platforms_match(shard, Platform("i686", "windows")) ||
161+
platforms_match(shard, Platform("i686", "linux")) ||
162+
platforms_match(shard, Platform("armv6l", "linux")) ||
163+
platforms_match(shard, Platform("armv7l", "linux")) ||
164+
platforms_match(shard, Platform("aarch64", "freebsd")))
165+
push!(products, ExecutableProduct("hello_world_ocaml", :hello_world_ocaml))
158166
push!(compilers, :ocaml)
159167
end
160168

0 commit comments

Comments
 (0)