Skip to content

Commit cf0454c

Browse files
committed
Don't build test helpers for wasm32
1 parent b70124e commit cf0454c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/test.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,10 @@ impl Step for Compiletest {
10161016
// Also provide `rust_test_helpers` for the host.
10171017
builder.ensure(native::TestHelpers { target: compiler.host });
10181018

1019-
builder.ensure(native::TestHelpers { target });
1019+
// wasm32 can't build the test helpers
1020+
if !target.contains("wasm32") {
1021+
builder.ensure(native::TestHelpers { target });
1022+
}
10201023
builder.ensure(RemoteCopyLibs { compiler, target });
10211024

10221025
let mut cmd = builder.tool_cmd(Tool::Compiletest);

0 commit comments

Comments
 (0)