From: Joel Rosdahl Date: Tue, 14 Aug 2018 19:14:36 +0000 (+0200) Subject: Bail out on too hard clang option “-MJ” X-Git-Tag: v3.4.3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db3f3a9db39f4980b228735c3db5b561df3b3a01;p=thirdparty%2Fccache.git Bail out on too hard clang option “-MJ” See discussion in pull request #277. --- diff --git a/doc/NEWS.adoc b/doc/NEWS.adoc index 907c7e800..bfa18ee78 100644 --- a/doc/NEWS.adoc +++ b/doc/NEWS.adoc @@ -11,6 +11,8 @@ Bug fixes - Fixed a race condition when creating the initial config file in the cache directory. +- Bail out on too hard clang option `-MJ`. + ccache 3.4.2 ------------ diff --git a/src/compopt.c b/src/compopt.c index aab9fe552..0df2bd0a8 100644 --- a/src/compopt.c +++ b/src/compopt.c @@ -46,6 +46,7 @@ static const struct compopt compopts[] = { {"-L", TAKES_ARG}, {"-M", TOO_HARD}, {"-MF", TAKES_ARG}, + {"-MJ", TAKES_ARG | TOO_HARD}, {"-MM", TOO_HARD}, {"-MQ", TAKES_ARG}, {"-MT", TAKES_ARG},