]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
added CCACHE_DISABLE setting
authorAndrew Tridgell <tridge@samba.org>
Wed, 27 Mar 2002 06:15:32 +0000 (07:15 +0100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 27 Mar 2002 06:15:32 +0000 (07:15 +0100)
README
ccache.c

diff --git a/README b/README
index 608f30e92857da1a3e9c24500cba2d812c3f8aa7..df62d2f3e1cd2a1974f3bd03325a2536966b4074 100644 (file)
--- a/README
+++ b/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
 -----------
 
index 13fa21da20bbfc8cbc585dd95e609a6abf298bc6..cacecf3d3b29239e174f2b137735654fe22c73de 100644 (file)
--- a/ccache.c
+++ b/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);