Merge branch 'autodeps-caching' into 'master'

Add logs to check auto_deps cache behaviour

See merge request redox-os/redox!1896
This commit is contained in:
Jeremy Soller 2026-02-11 06:51:21 -07:00
commit a8dc242f47

View File

@ -598,7 +598,14 @@ fn build_auto_deps(
let auto_deps_path = target_dir.join("auto_deps.toml");
if auto_deps_path.is_file() && !cook_config.clean_target {
if modified(&auto_deps_path)? < modified_all(stage_dirs, modified)? {
remove_all(&auto_deps_path)?
if cook_config.verbose {
log_to_pty!(logger, "DEBUG: updating {}", auto_deps_path.display());
}
remove_all(&auto_deps_path)?;
} else {
if cook_config.verbose {
log_to_pty!(logger, "DEBUG: Using cached auto deps");
}
}
}