stats_update(STATS_LINK);
}
} else {
- cc_log("Non-C/C++ file: %s", argv[i]);
- stats_update(STATS_NOTC);
+ cc_log("Unsupported source extension: %s", argv[i]);
+ stats_update(STATS_SOURCELANG);
}
failed();
}
if (explicit_language) {
if (!language_is_supported(explicit_language)) {
cc_log("Unsupported language: %s", explicit_language);
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_SOURCELANG);
failed();
}
actual_language = explicit_language;
actual_language = file_language;
}
if (!actual_language) {
- cc_log("Not a C/C++ file: %s", input_file);
- stats_update(STATS_NOTC);
+ cc_log("Unsupported source extension: %s", input_file);
+ stats_update(STATS_SOURCELANG);
failed();
}
direct_i_file = language_is_preprocessed(actual_language);
STATS_TOTALSIZE,
STATS_MAXFILES,
STATS_MAXSIZE,
- STATS_NOTC,
+ STATS_SOURCELANG,
STATS_DEVICE,
STATS_NOINPUT,
STATS_MULTIPLE,
{ STATS_COMPILER, "couldn't find the compiler ", NULL, 0 },
{ STATS_MISSING, "cache file missing ", NULL, 0 },
{ STATS_ARGS, "bad compiler arguments ", NULL, 0 },
- { STATS_NOTC, "not a C/C++ file ", NULL, 0 },
+ { STATS_SOURCELANG, "unsupported source language ", NULL, 0 },
{ STATS_CONFTEST, "autoconf compile/link ", NULL, 0 },
{ STATS_UNSUPPORTED, "unsupported compiler option ", NULL, 0 },
{ STATS_OUTSTDOUT, "output to stdout ", NULL, 0 },
$CCACHE_COMPILE -c test1.c -I 2> /dev/null
checkstat 'bad compiler arguments' 1
- testname="c/c++"
+ testname="unsupported source language"
ln -f test1.c test1.ccc
$CCACHE_COMPILE -c test1.ccc 2> /dev/null
- checkstat 'not a C/C++ file' 1
+ checkstat 'unsupported source language' 1
testname="unsupported"
$CCACHE_COMPILE -M foo -c test1.c > /dev/null 2>&1