if (str_eq(argv[i], "-optf") || str_eq(argv[i], "--options-file")) {
if (i > argc) {
cc_log("Expected argument after -optf/--options-file");
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
result = false;
goto out;
}
// These are always too hard.
if (compopt_too_hard(argv[i]) || str_startswith(argv[i], "-fdump-")) {
cc_log("Compiler option %s is unsupported", argv[i]);
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
result = false;
goto out;
}
// -Xarch_* options are too hard.
if (str_startswith(argv[i], "-Xarch_")) {
cc_log("Unsupported compiler option :%s", argv[i]);
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
result = false;
goto out;
}
if (arch_args_size == MAX_ARCH_ARGS - 1) {
cc_log("Too many -arch compiler options; ccache supports at most %d",
MAX_ARCH_ARGS);
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
result = false;
goto out;
}
// file from compiling the preprocessed file will not be equal to the
// object file produced when compiling without ccache.
cc_log("Too hard option -Wp,-P detected");
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
failed();
} else if (str_startswith(argv[i], "-Wp,-MD,")
&& !strchr(argv[i] + 8, ',')) {
create_file("foo.c", "");
CHECK(!cc_process_args(orig, &preprocessed, &compiler));
- CHECK_INT_EQ(1, stats_get_pending(STATS_UNSUPPORTED));
+ CHECK_INT_EQ(1, stats_get_pending(STATS_UNSUPPORTED_OPTION));
args_free(orig);
}