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
This commit is contained in:
Alex Crichton 2017-01-03 14:16:05 -08:00
parent 753dff63c6
commit 3ab778b4af

View File

@ -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());