The -v option tells the compiler to print various diagnostics to stdout,
including randomly generated filenames. When ccache calls the
preprocessor and -v is on the command line, the random information will
become part of the input hash, making the preprocessor mode always
produce cache misses.
Fix this by only passing -v when compiling, not preprocessing.
Closes #1293.
{"-stdlib=", AFFECTS_CPP | TAKES_CONCAT_ARG},
{"-trigraphs", AFFECTS_CPP},
{"-u", TAKES_ARG | TAKES_CONCAT_ARG},
+ {"-v", AFFECTS_COMP},
{"-z", TAKES_ARG | TAKES_CONCAT_ARG | AFFECTS_COMP},
};