diff --git a/build.rs b/build.rs index 22b53276d10e..6cdb1f3a80f0 100644 --- a/build.rs +++ b/build.rs @@ -36,7 +36,13 @@ fn main() -> anyhow::Result<()> { test_directory_module(out, "tests/misc_testsuite/memory64", strategy)?; test_directory_module(out, "tests/misc_testsuite/component-model", strategy)?; test_directory_module(out, "tests/misc_testsuite/function-references", strategy)?; - test_directory_module(out, "tests/misc_testsuite/winch", strategy)?; + // The testsuite of Winch is a subset of the official + // WebAssembly test suite, until parity is reached. This + // check is in place to prevent Cranelift from duplicating + // tests. + if *strategy == "Winch" { + test_directory_module(out, "tests/misc_testsuite/winch", strategy)?; + } Ok(()) })?;