Skip to content

Commit

Permalink
Do not execute .asm.js files on wasm32 tests
Browse files Browse the repository at this point in the history
Files with extensions .asm.js are used to generate .wasm files, they are
not intented to be execute.
  • Loading branch information
malbarbo committed Jun 13, 2017
1 parent 9b88a1b commit 554f21b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bootstrap/check.rs
Expand Up @@ -563,7 +563,9 @@ fn find_tests(dir: &Path,
let filename = e.file_name().into_string().unwrap();
if (target.contains("windows") && filename.ends_with(".exe")) ||
(!target.contains("windows") && !filename.contains(".")) ||
(target.contains("emscripten") && filename.ends_with(".js")) {
(target.contains("emscripten") &&
filename.ends_with(".js") &&
!filename.ends_with(".asm.js")) {
dst.push(e.path());
}
}
Expand Down

0 comments on commit 554f21b

Please sign in to comment.