]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Don't pass -v to the preprocessor
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 6 Jun 2023 19:42:12 +0000 (21:42 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 7 Jun 2023 06:47:32 +0000 (08:47 +0200)
commitd84d5334ee381fdd0996d3e425d254637f06aa45
tree3b52e2800a79469fe693e9db1c3cfd10629d87bb
parent8eafa2be4a2b71db3fb16c533d23ee895c052406
fix: Don't pass -v to the preprocessor

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.
src/compopt.cpp