// The name of the cpp stderr file.
std::string cpp_stderr;
+
+ // The stats file to use for the manifest.
+ std::string manifest_stats_file;
};
} else {
auto st = Stat::stat(ctx.manifest_path, Stat::OnError::log);
stats_update_size(ctx,
- from_cstr(manifest_stats_file),
+ ctx.manifest_stats_file,
st.size_on_disk() - old_st.size_on_disk(),
!old_st && st ? 1 : 0);
}
ctx.config.cache_dir_levels(),
manifest_name_string,
".manifest");
- manifest_stats_file = format(
- "%s/%c/stats", ctx.config.cache_dir().c_str(), manifest_name_string[0]);
+ ctx.manifest_stats_file = fmt::format(
+ "{}/{}/stats", ctx.config.cache_dir(), manifest_name_string[0]);
cc_log("Looking for result name in %s", ctx.manifest_path.c_str());
MTR_BEGIN("manifest", "manifest_get");
// Size of headers to ignore list.
size_t ignore_headers_len;
-// The stats file to use for the manifest.
-char* manifest_stats_file;
-
// Compiler guessing is currently only based on the compiler name, so nothing
// should hard-depend on it if possible.
enum guessed_compiler guessed_compiler = GUESSED_UNKNOWN;
extern size_t ignore_headers_len;
-extern char* manifest_stats_file;
-
extern enum guessed_compiler guessed_compiler;
extern char* included_pch_file;