mirror of
https://github.com/reactos/ccache.git
synced 2025-02-02 01:33:54 +00:00
a specific autoconf statistic is useful for diagnostics
This commit is contained in:
parent
6d5190fb72
commit
7d870180a2
6
ccache.c
6
ccache.c
@ -609,7 +609,11 @@ static void process_args(int argc, char **argv)
|
||||
|
||||
if (!found_c_opt) {
|
||||
cc_log("No -c option found for %s\n", input_file);
|
||||
stats_update(STATS_LINK);
|
||||
if (strstr(input_file, "conftest.")) {
|
||||
stats_update(STATS_CONFTEST);
|
||||
} else {
|
||||
stats_update(STATS_LINK);
|
||||
}
|
||||
failed();
|
||||
}
|
||||
|
||||
|
1
ccache.h
1
ccache.h
@ -48,6 +48,7 @@ enum stats {
|
||||
STATS_DEVICE,
|
||||
STATS_NOINPUT,
|
||||
STATS_MULTIPLE,
|
||||
STATS_CONFTEST,
|
||||
|
||||
STATS_END
|
||||
};
|
||||
|
1
stats.c
1
stats.c
@ -50,6 +50,7 @@ static struct {
|
||||
{ STATS_MISSING, "cache file missing ", NULL, 0 },
|
||||
{ STATS_ARGS, "bad compiler arguments ", NULL, 0 },
|
||||
{ STATS_NOTC, "not a C/C++ file ", NULL, 0 },
|
||||
{ STATS_CONFTEST, "autoconf compile/link ", NULL, 0 },
|
||||
{ STATS_DEVICE, "output to a non-regular file ", NULL, 0 },
|
||||
{ STATS_NOINPUT, "no input file ", NULL, 0 },
|
||||
{ STATS_NUMFILES, "files in cache ", NULL, FLAG_NOZERO|FLAG_ALWAYS },
|
||||
|
Loading…
x
Reference in New Issue
Block a user