diff --git a/tests/wast.rs b/tests/wast.rs index 474d985e778f..669dbe969dc1 100644 --- a/tests/wast.rs +++ b/tests/wast.rs @@ -24,8 +24,13 @@ fn main() { .map(|s| s.split(" ").map(|s| s.to_string()).collect::>()); // List of supported compilers, filtered by what our current host supports. + // If the current host doesn't support anything native, then test pulley + // instead. let mut compilers = vec![Compiler::CraneliftNative, Compiler::Winch]; compilers.retain(|c| c.supports_host()); + if compilers.is_empty() { + compilers.push(Compiler::CraneliftPulley); + } // Only test one compiler in ASAN since we're mostly interested in testing // runtime code, not compiler-generated code.