From db3f3a9db39f4980b228735c3db5b561df3b3a01 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 14 Aug 2018 21:14:36 +0200 Subject: [PATCH] =?utf8?q?Bail=20out=20on=20too=20hard=20clang=20option=20?= =?utf8?q?=E2=80=9C-MJ=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit See discussion in pull request #277. --- doc/NEWS.adoc | 2 ++ src/compopt.c | 1 + 2 files changed, 3 insertions(+) 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}, -- 2.47.2