Rollup merge of #40259 - TimNN:fix-emscripten-tests, r=alexcrichton
Fix emscripten test detection Without this change `rustbuild` will attempt to run `.js.map` files (if they exist) resulting in lots of sadness. r? @alexcrichton
This commit is contained in:
commit
5c715dee38
|
@ -550,7 +550,7 @@ 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.contains(".js")){
|
||||
(target.contains("emscripten") && filename.ends_with(".js")) {
|
||||
dst.push(e.path());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue