added CCACHE_DISABLE setting

This commit is contained in:
Andrew Tridgell 2002-03-27 07:15:32 +01:00
parent 57088bae34
commit 10920460b5
2 changed files with 11 additions and 0 deletions

6
README
View File

@ -57,6 +57,12 @@ will be fine.
to ccache itself.
CCACHE_DISABLE
If you set the environment variable CCACHE_DISABLE then ccache will
just call the real compiler, bypassing the cache completely.
Differences
-----------

View File

@ -462,6 +462,11 @@ static void ccache(int argc, char *argv[])
orig_args->argv = argv;
orig_args->argc = argc;
if (getenv("CCACHE_DISABLE")) {
cc_log("ccache is disabled\n");
failed();
}
/* process argument list, returning a new set of arguments for pre-processing */
process_args(argc, argv);