}
}
+ // The comparison using >= is intentional, due to a possible race
+ // between starting compilation and writing the include file.
+ // See https://github.com/ccache/ccache/blob/master/MANUAL.txt
if (!(conf->sloppiness & SLOPPY_INCLUDE_FILE_MTIME)
&& st.st_mtime >= time_of_compilation) {
cc_log("Include file %s too new", path);
goto failure;
}
+ // The same >= logic as above applies to the change time of the file.
if (!(conf->sloppiness & SLOPPY_INCLUDE_FILE_CTIME)
&& st.st_ctime >= time_of_compilation) {
cc_log("Include file %s ctime too new", path);