]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Detect undocumented -coverage (only one dash) GCC option
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 28 Jul 2016 13:36:35 +0000 (15:36 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 28 Jul 2016 13:36:35 +0000 (15:36 +0200)
NEWS.txt
ccache.c

index b56707e05ee2040fbb352049c62e8988414e3367..fe16d27522747b713c3b92a3b95088f1c4787ed8 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -2,6 +2,16 @@ ccache news
 ===========
 
 
+Unreleased 3.2.8
+----------------
+
+Bug fixes
+~~~~~~~~~
+
+- ccache now understands the undocumented `-coverage` (only one dash) GCC
+  option.
+
+
 ccache 3.2.7
 ------------
 Release date: 2016-07-20
index 49b2092c8f12302dc595b5d05dfa71504ccca279..591c7d7cb8be3c2bcec713cb28ffd1a6c58027be 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -2205,7 +2205,8 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
                        args_add(stripped_args, argv[i]);
                        continue;
                }
-               if (str_eq(argv[i], "--coverage")) { /* = -fprofile-arcs -ftest-coverage */
+               if (str_eq(argv[i], "--coverage") /* = -fprofile-arcs -ftest-coverage */
+                   || str_eq(argv[i], "-coverage")) { /* Undocumented but still works */
                        profile_arcs = true;
                        generating_coverage = true;
                        args_add(stripped_args, argv[i]);