}
static void
-print_included_files(Context& ctx, FILE* fp)
+print_included_files(const Context& ctx, FILE* fp)
{
for (const auto& item : ctx.included_files) {
fprintf(fp, "%s\n", item.first.c_str());
// Hash mtime or content of a file, or the output of a command, according to
// the CCACHE_COMPILERCHECK setting.
static void
-hash_compiler(Context& ctx,
+hash_compiler(const Context& ctx,
struct hash* hash,
const Stat& st,
const char* path,
// with -ccbin/--compiler-bindir. If they are NULL, the compilers are looked up
// in PATH instead.
static void
-hash_nvcc_host_compiler(Context& ctx,
+hash_nvcc_host_compiler(const Context& ctx,
struct hash* hash,
const Stat* ccbin_st,
const char* ccbin)
// Update a hash with information common for the direct and preprocessor modes.
static void
-hash_common_info(Context& ctx,
+hash_common_info(const Context& ctx,
struct args* args,
struct hash* hash,
const ArgsInfo& args_info)
// Find the real compiler. We just search the PATH to find an executable of the
// same name that isn't a link to ourselves.
static void
-find_compiler(Context& ctx, char** argv)
+find_compiler(const Context& ctx, char** argv)
{
// We might be being invoked like "ccache gcc -c foo.c".
std::string base(Util::base_name(argv[0]));