From 8955f497f3e91a935a100dc62a8eb92914546035 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 8 Mar 2015 17:08:13 +0100 Subject: [PATCH] Bail out on too hard compiler option "-fmodules" --- NEWS.txt | 2 ++ compopt.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS.txt b/NEWS.txt index c8d5088a7..2bc1d52dd 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -20,6 +20,8 @@ Bug fixes - Avoid performing an unnecessary copy of the object file on a cache miss. +- Bail out on too hard compiler option `-fmodules`. + ccache 3.2.1 ------------ diff --git a/compopt.c b/compopt.c index 1996fdfc3..a1c83fd6f 100644 --- a/compopt.c +++ b/compopt.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010, 2012-2013 Joel Rosdahl + * Copyright (C) 2010-2015 Joel Rosdahl * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -56,6 +56,7 @@ static const struct compopt compopts[] = { {"-arch", TAKES_ARG}, {"-aux-info", TAKES_ARG}, {"-b", TAKES_ARG}, + {"-fmodules", TOO_HARD}, {"-fno-working-directory", AFFECTS_CPP}, {"-frepo", TOO_HARD}, {"-ftest-coverage", TOO_HARD}, /* generates a .gcno file at the same time */ -- 2.47.2