- Corrected documentation about sharing the cache directory.
- Fixed compilation warnings from GCC 4.3.
+
+ - The command specified by CCACHE_PREFIX is no longer part of the hash.
int found_c_opt = 0;
int found_S_opt = 0;
struct stat st;
- char *e;
/* is gcc being asked to output dependencies? */
int generating_dependencies = 0;
/* is the dependency makefile name overridden with -MF? */
stats_update(STATS_DEVICE);
failed();
}
-
- if ((e=getenv("CCACHE_PREFIX"))) {
- char *p = find_executable(e, MYNAME);
- if (!p) {
- perror(e);
- exit(1);
- }
- args_add_prefix(stripped_args, p);
- }
}
/* the main ccache driver function */
static void ccache(int argc, char *argv[])
{
+ char *prefix;
+
/* find the real compiler */
find_compiler(argc, argv);
failed();
}
+ prefix = getenv("CCACHE_PREFIX");
+ if (prefix) {
+ char *p = find_executable(prefix, MYNAME);
+ if (!p) {
+ perror(prefix);
+ exit(1);
+ }
+ args_add_prefix(stripped_args, p);
+ }
+
/* run real compiler, sending output to cache */
to_cache(stripped_args);