Skip to content

Commit f8985d0

Browse files
committed
Skip Rust tests for RISC-V
1 parent bd62de3 commit f8985d0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/building.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,17 @@ shards_to_test = expand_cxxstring_abis(expand_gfortran_versions(shards_to_test))
114114
]
115115

116116
if !(platforms_match(shard, Platform("i686", "windows")) ||
117-
platforms_match(shard, Platform("aarch64", "freebsd")))
118-
# Rust is broken on 32-bit Windows and unavailable on FreeBSD AArch64, let's skip it
117+
platforms_match(shard, Platform("aarch64", "freebsd")) ||
118+
platforms_match(shard, Platform("riscv64", "linux")))
119+
# Rust is broken on 32-bit Windows and unavailable on FreeBSD AArch64 and RISC-V, let's skip it
119120
push!(products, ExecutableProduct("hello_world_rust", :hello_world_rust))
120121
end
121122

122123
compilers = [:c, :go]
123-
# Don't even ask for Rust on FreeBSD AArch64
124-
if !platforms_match(shard, Platform("aarch64", "freebsd"))
124+
# Don't even ask for Rust on FreeBSD AArch64 or RISC-V
125+
if !(platforms_match(shard, Platform("aarch64", "freebsd")) ||
126+
platforms_match(shard, Platform("riscv64", "linux"))
127+
)
125128
push!(compilers, :rust)
126129
end
127130

0 commit comments

Comments
 (0)