output_is_precompiled_header =
actual_language && strstr(actual_language, "-header") != NULL;
- if (!found_c_opt && !output_is_precompiled_header) {
- cc_log("No -c option found");
- /* I find that having a separate statistic for autoconf tests is useful,
- as they are the dominant form of "called for link" in many cases */
- if (strstr(input_file, "conftest.")) {
- stats_update(STATS_CONFTEST);
+ if (!found_c_opt) {
+ if (output_is_precompiled_header) {
+ args_add(stripped_args, "-c");
} else {
- stats_update(STATS_LINK);
+ cc_log("No -c option found");
+ /* I find that having a separate statistic for autoconf tests is useful,
+ as they are the dominant form of "called for link" in many cases */
+ if (strstr(input_file, "conftest.")) {
+ stats_update(STATS_CONFTEST);
+ } else {
+ stats_update(STATS_LINK);
+ }
+ result = false;
+ goto out;
}
- result = false;
- goto out;
}
if (!actual_language) {
fi
testname="create .gch, no -c, -o"
- $CCACHE -z >/dev/null
+ $CCACHE -Cz >/dev/null
$CCACHE $COMPILER pch.h -o pch.gch
checkstat 'cache hit (direct)' 0
checkstat 'cache hit (preprocessed)' 0