]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
better conftest stats test v1.7
authorAndrew Tridgell <tridge@samba.org>
Wed, 10 Apr 2002 08:31:12 +0000 (10:31 +0200)
committerAndrew Tridgell <tridge@samba.org>
Wed, 10 Apr 2002 08:31:12 +0000 (10:31 +0200)
ccache.c

index cdbe6c4ec39ab680e1ae3f4aeae70e23e3482e5b..f3d8f1a084a0b4c473af55a7d916ded14bc601e8 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -583,7 +583,11 @@ static void process_args(int argc, char **argv)
                                stats_update(STATS_MULTIPLE);
                        } else if (!found_c_opt) {
                                cc_log("called for link with %s\n", argv[i]);
-                               stats_update(STATS_LINK);
+                               if (strstr(argv[i], "conftest.")) {
+                                       stats_update(STATS_CONFTEST);
+                               } else {
+                                       stats_update(STATS_LINK);
+                               }
                        } else {
                                cc_log("non C/C++ file %s\n", argv[i]);
                                stats_update(STATS_NOTC);