Skip to content

Commit 78927e6

Browse files
committed
fix(fingerpring): do not touch intermediate artifacts
1 parent 9aa7a4d commit 78927e6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/cargo/core/compiler/fingerprint.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,6 @@ impl Fingerprint {
760760
&mut self,
761761
pkg_root: &Path,
762762
target_root: &Path,
763-
mtime_on_use: bool,
764763
) -> CargoResult<()> {
765764
assert!(!self.fs_status.up_to_date());
766765

@@ -781,10 +780,6 @@ impl Fingerprint {
781780
return Ok(());
782781
}
783782
};
784-
if mtime_on_use {
785-
let t = FileTime::from_system_time(SystemTime::now());
786-
filetime::set_file_times(output, t, t)?;
787-
}
788783
assert!(mtimes.insert(output.clone(), mtime).is_none());
789784
}
790785

@@ -1024,8 +1019,7 @@ fn calculate<'a, 'cfg>(
10241019
// After we built the initial `Fingerprint` be sure to update the
10251020
// `fs_status` field of it.
10261021
let target_root = target_root(cx, unit);
1027-
let mtime_on_use = cx.bcx.config.cli_unstable().mtime_on_use;
1028-
fingerprint.check_filesystem(unit.pkg.root(), &target_root, mtime_on_use)?;
1022+
fingerprint.check_filesystem(unit.pkg.root(), &target_root)?;
10291023

10301024
let fingerprint = Arc::new(fingerprint);
10311025
cx.fingerprints.insert(*unit, Arc::clone(&fingerprint));

0 commit comments

Comments
 (0)