From: Joel Rosdahl Date: Thu, 28 Jul 2016 13:36:35 +0000 (+0200) Subject: Detect undocumented -coverage (only one dash) GCC option X-Git-Tag: v3.2.8~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86c8b0558953e8b7175ca63740d6895e8076f298;p=thirdparty%2Fccache.git Detect undocumented -coverage (only one dash) GCC option --- diff --git a/NEWS.txt b/NEWS.txt index b56707e05..fe16d2752 100644 --- 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 diff --git a/ccache.c b/ccache.c index 49b2092c8..591c7d7cb 100644 --- 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]);