]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Bail out on too hard compiler option "-fmodules"
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Mar 2015 16:08:13 +0000 (17:08 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Mar 2015 16:08:13 +0000 (17:08 +0100)
NEWS.txt
compopt.c

index c8d5088a7c6d0cd20b798f5be8d03066be5e3617..2bc1d52dd04ec69d8e45551e8d9fdf9386a5d65e 100644 (file)
--- 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
 ------------
index 1996fdfc36d25c912b6e62723bd014f6d6b784a8..a1c83fd6f82efb3853992dffef341dda68dc724b 100644 (file)
--- 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 */