mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-14 21:16:50 +00:00
Only pass rlibs in target deps directory
This commit is contained in:
parent
2e47cf1b83
commit
805fef0301
@ -62,14 +62,8 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
|
||||
// See https://github.com/rust-lang/rust-clippy/issues/4015.
|
||||
let needs_disambiguation = ["serde", "regex", "clippy_lints"];
|
||||
// This assumes that deps are compiled (they are for Cargo integration tests).
|
||||
let deps = fs::read_dir(host_libs().join("deps")).unwrap();
|
||||
let deps: Vec<_> = if let Some(target_libs) = target_libs() {
|
||||
deps.chain(fs::read_dir(target_libs.join("deps")).unwrap()).collect()
|
||||
} else {
|
||||
deps.collect()
|
||||
};
|
||||
let deps = fs::read_dir(target_libs().unwrap_or_else(host_libs).join("deps")).unwrap();
|
||||
let disambiguated = deps
|
||||
.into_iter()
|
||||
.filter_map(|dep| {
|
||||
let path = dep.ok()?.path();
|
||||
let name = path.file_name()?.to_string_lossy();
|
||||
|
Loading…
Reference in New Issue
Block a user