*/
char *stats_file = NULL;
-/* can we safely use the unification hashing backend? */
-static bool enable_unify;
-
/* Whether the output is a precompiled header */
static bool output_is_precompiled_header = false;
failed();
}
- if (enable_unify) {
+ if (conf->unify) {
/*
* When we are doing the unifying tricks we need to include the
* input file name in the hash to get the warnings right.
*/
if (str_startswith(argv[i], "-g")) {
args_add(stripped_args, argv[i]);
- if (enable_unify && !str_eq(argv[i], "-g0")) {
+ if (conf->unify && !str_eq(argv[i], "-g0")) {
cc_log("%s used; disabling unify mode", argv[i]);
- enable_unify = false;
+ conf->unify = false;
}
if (str_eq(argv[i], "-g3")) {
/*
direct_i_file = false;
free(cpp_stderr); cpp_stderr = NULL;
free(stats_file); stats_file = NULL;
- enable_unify = false;
output_is_precompiled_header = false;
initialize();
cc_log("Base directory: %s", conf->base_dir);
}
- if (getenv("CCACHE_UNIFY")) {
- cc_log("Unify mode disabled");
- enable_unify = true;
- }
-
- if (enable_unify) {
+ if (conf->unify) {
cc_log("Direct mode disabled because unify mode is enabled");
conf->direct_mode = false;
}