diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 881bea5d97e..c552f607960 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -1016,7 +1016,10 @@ impl Step for Compiletest { // Also provide `rust_test_helpers` for the host. builder.ensure(native::TestHelpers { target: compiler.host }); - builder.ensure(native::TestHelpers { target }); + // wasm32 can't build the test helpers + if !target.contains("wasm32") { + builder.ensure(native::TestHelpers { target }); + } builder.ensure(RemoteCopyLibs { compiler, target }); let mut cmd = builder.tool_cmd(Tool::Compiletest);