diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-01-03 14:16:05 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-03 14:17:02 -0800 |
| commit | 3ab778b4afc1c11e48dd8b1f82c5dca9c897bcba (patch) | |
| tree | 731cd0c5f2912e44d15cbbb719579103caef5210 | |
| parent | 753dff63c60dba76217fc3ca18871695bdef14b6 (diff) | |
| download | rust-3ab778b4afc1c11e48dd8b1f82c5dca9c897bcba.tar.gz rust-3ab778b4afc1c11e48dd8b1f82c5dca9c897bcba.zip | |
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
| -rw-r--r-- | src/bootstrap/compile.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index 7f907d98b1e..31f8754d209 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -391,7 +391,7 @@ pub fn tool(build: &Build, stage: u32, host: &str, tool: &str) { /// all files in a directory and updating the stamp if any are newer. fn update_mtime(path: &Path) { let mut max = None; - if let Ok(entries) = path.parent().unwrap().read_dir() { + if let Ok(entries) = path.parent().unwrap().join("deps").read_dir() { for entry in entries.map(|e| t!(e)) { if t!(entry.file_type()).is_file() { let meta = t!(entry.metadata()); |
