Fix auto path failed to detect

This commit is contained in:
Wildan M 2026-04-16 17:38:45 +07:00
parent a9d9415775
commit 475ea8fc5e
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -41,9 +41,6 @@ fn auto_deps_from_dynamic_linking(
// Recursively (DFS) walk each directory to ensure nested libs and bins are checked.
while let Some((rel_path, dir)) = walk.pop_front() {
let Ok(dir) = dir.canonicalize() else {
continue;
};
if visited.contains(&dir) {
#[cfg(debug_assertions)]
log_to_pty!(
@ -101,6 +98,8 @@ fn auto_deps_from_dynamic_linking(
}
}
needed.insert(name.to_string());
} else {
log_to_pty!(logger, "DEBUG: autopath failed {} is outside {}", path.display(), rel_path.display());
}
}
}