directory in the `.gcno` file. *gcno_cwd* also disables hashing of the
current working directory if `-fprofile-abs-path` is used.
*include_file_ctime*::
- By default, ccache will not cache a file if it includes a header whose ctime
- is too new. This sloppiness disables that check. See also
- _<<Handling of newly created header files>>_.
+ By default, ccache will disable the direct mode if an include file has too
+ new ctime. This sloppiness disables that check. See also _<<Handling of
+ newly created header files>>_.
*include_file_mtime*::
- By default, ccache will not cache a file if it includes a header whose mtime
- is too new. This sloppiness disables that check. See also
- _<<Handling of newly created header files>>_.
+ By default, ccache will disable the direct mode if an include file has too
+ new mtime. This sloppiness disables that check. See also _<<Handling of
+ newly created header files>>_.
*ivfsoverlay*::
Ignore the Clang compiler option `-ivfsoverlay` and its argument. This is
useful if you use Xcode, which uses a virtual file system (VFS) for things
// starting compilation and writing the include file. See also the notes under
// "Performance" in doc/MANUAL.adoc.
if (!(ctx.config.sloppiness().is_enabled(core::Sloppy::include_file_mtime))
- && path_stat.mtime().sec() >= ctx.time_of_compilation.sec()) {
+ && path_stat.mtime() >= ctx.time_of_compilation) {
LOG("Include file {} too new", path);
return true;
}
// The same >= logic as above applies to the change time of the file.
if (!(ctx.config.sloppiness().is_enabled(core::Sloppy::include_file_ctime))
- && path_stat.ctime().sec() >= ctx.time_of_compilation.sec()) {
+ && path_stat.ctime() >= ctx.time_of_compilation) {
LOG("Include file {} ctime too new", path);
return true;
}
MTR_SCOPE("manifest", "manifest_put");
- // {m,c}time() have a resolution of 1 second, so we can cache the file's mtime
- // and ctime only if they're at least one second older than
- // time_of_compilation.
- //
// ctime() may be 0, so we have to check time_of_compilation against
// MAX(mtime, ctime).
//