From: Andrew Tridgell Date: Sat, 27 Sep 2003 12:01:47 +0000 (+0200) Subject: support for -MD and -MMD from Bob Wilson X-Git-Tag: v2.3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd2002b923bc729d543cd897474645243f58eb6a;p=thirdparty%2Fccache.git support for -MD and -MMD from Bob Wilson --- diff --git a/ccache.c b/ccache.c index 9ead0566f..35d2629c9 100644 --- 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);