Skip to content

Commit 3ab778b

Browse files
committed
rustbuild: Update where we look for mtime changes
Recent versions of Cargo lift less output up into the "main" directory, so let's look more inside the `deps` folder for changes to propagate differences. Closes #38744 Closes #38746
1 parent 753dff6 commit 3ab778b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/compile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ pub fn tool(build: &Build, stage: u32, host: &str, tool: &str) {
391391
/// all files in a directory and updating the stamp if any are newer.
392392
fn update_mtime(path: &Path) {
393393
let mut max = None;
394-
if let Ok(entries) = path.parent().unwrap().read_dir() {
394+
if let Ok(entries) = path.parent().unwrap().join("deps").read_dir() {
395395
for entry in entries.map(|e| t!(e)) {
396396
if t!(entry.file_type()).is_file() {
397397
let meta = t!(entry.metadata());

0 commit comments

Comments
 (0)