mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-07 23:47:39 +00:00
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.
This commit is contained in:
parent
9b88a1b30b
commit
554f21bc02
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user