Skip to content

Commit 554f21b

Browse files
committed
Do not execute .asm.js files on wasm32 tests
Files with extensions .asm.js are used to generate .wasm files, they are not intented to be execute.
1 parent 9b88a1b commit 554f21b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/check.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,9 @@ fn find_tests(dir: &Path,
563563
let filename = e.file_name().into_string().unwrap();
564564
if (target.contains("windows") && filename.ends_with(".exe")) ||
565565
(!target.contains("windows") && !filename.contains(".")) ||
566-
(target.contains("emscripten") && filename.ends_with(".js")) {
566+
(target.contains("emscripten") &&
567+
filename.ends_with(".js") &&
568+
!filename.ends_with(".asm.js")) {
567569
dst.push(e.path());
568570
}
569571
}

0 commit comments

Comments
 (0)