]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
support for -MD and -MMD from Bob Wilson <bwilson@tensilica.com>
authorAndrew Tridgell <tridge@samba.org>
Sat, 27 Sep 2003 12:01:47 +0000 (14:01 +0200)
committerAndrew Tridgell <tridge@samba.org>
Sat, 27 Sep 2003 12:01:47 +0000 (14:01 +0200)
ccache.c

index 9ead0566f8725ef96527c999ba7408fe0c47d929..35d2629c9d8eaa2615cf628e71d8756498bbc0d1 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -628,7 +628,9 @@ static void process_args(int argc, char **argv)
 
                /* these are too hard */
                if (strcmp(argv[i], "-fbranch-probabilities")==0 ||
-                   strcmp(argv[i], "-M") == 0 ||
+                   (strncmp(argv[i], "-M", 2) == 0 &&
+                    strcmp(argv[i], "-MD") != 0 &&
+                    strcmp(argv[i], "-MMD") != 0) ||
                    strcmp(argv[i], "-x") == 0) {
                        cc_log("argument %s is unsupported\n", argv[i]);
                        stats_update(STATS_UNSUPPORTED);