]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
thanks to Andy Chittenden <achittenden@bluearc.com> for pointing out
authorAndrew Tridgell <tridge@samba.org>
Thu, 18 Apr 2002 10:26:47 +0000 (12:26 +0200)
committerAndrew Tridgell <tridge@samba.org>
Thu, 18 Apr 2002 10:26:47 +0000 (12:26 +0200)
that -M does in fact work!

ccache.c

index f3d8f1a084a0b4c473af55a7d916ded14bc601e8..aa5ab72fef1330b8b44cd21be151b0083391ba10 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -260,6 +260,7 @@ static void find_hash(ARGS *args)
                hash_file(path_stdout);
        } else {
                if (unify_hash(path_stdout) != 0) {
+                       stats_update(STATS_ERROR);
                        failed();
                }
        }
@@ -496,8 +497,7 @@ static void process_args(int argc, char **argv)
 
        for (i=1; i<argc; i++) {
                /* some options will never work ... */
-               if (strncmp(argv[i], "-E", 2) == 0 ||
-                   strncmp(argv[i], "-M", 2) == 0) {
+               if (strncmp(argv[i], "-E", 2) == 0) {
                        failed();
                }