in src/compiler/c.rs [1130:1153]
fn include_is_too_new(
path: &Path,
meta: &PreprocessorFileMetadata,
time_of_compilation: std::time::SystemTime,
) -> bool {
// The comparison using >= is intentional, due to a possible race between
// starting compilation and writing the include file.
if let Some(mtime) = meta.modified {
if mtime >= time_of_compilation.into() {
debug!("Include file {} is too new", path.display());
return true;
}
}
// The same >= logic as above applies to the change time of the file.
if let Some(ctime) = meta.ctime_or_creation {
if ctime >= time_of_compilation.into() {
debug!("Include file {} is too new", path.display());
return true;
}
}
false
}