auto old_st = Stat::stat(manifest_path);
+ // See comment in get_file_hash_index for why saving of timestamps is forced
+ // for precompiled headers.
bool save_timestamp = (g_config.sloppiness() & SLOPPY_FILE_STAT_MATCHES)
|| output_is_precompiled_header;
// file_stat.ctime() may be 0, so we have to check time_of_compilation
// against MAX(mtime, ctime).
//
- // ccache only reads mtime/ctime if sloppy_file_stat_match is setted,
- // so mtimes/ctimes could store as a dummy value (-1) in other scenarios.
- // This will effectively control the total number of file infos in
- // certain scenarios, such as CI.
+ // ccache only reads mtime/ctime if file_stat_match sloppiness is enabled,
+ // so mtimes/ctimes are stored as a dummy value (-1) if not enabled. This
+ // reduces the number of file_info entries for the common case.
auto file_stat = Stat::stat(path, Stat::OnError::log);
if (file_stat) {