mirror of
https://github.com/reactos/ccache.git
synced 2025-01-09 13:00:37 +00:00
added CCACHE_DISABLE setting
This commit is contained in:
parent
57088bae34
commit
10920460b5
6
README
6
README
@ -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
|
||||
-----------
|
||||
|
||||
|
5
ccache.c
5
ccache.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user