]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Allow nonexistent include files in preprocessor mode
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 21 Feb 2024 19:25:03 +0000 (20:25 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 21 Feb 2024 19:51:55 +0000 (20:51 +0100)
commit08da6cd4da41fa213d387f52e3cf1d1f2a42366b
tree435e69cd0b938eb9ba486cb32592829dc0ad4db8
parentf66b3a79d7531b33eeb50051ef993572eaa98110
fix: Allow nonexistent include files in preprocessor mode

After 43c3a44aadcb nonexistent include files found in the preprocessed
output would increment "Could not read or parse input file" and fall
back to just running the compiler. This made ccache not attempt
preprocessor mode for generated code with #line header referencing files
that can't be found, e.g. in an out-of-source build scenario.

Fix this by just disabling direct mode, restoring the pre-43c3a44aadcb
behavior in such cases.

Fixes #1406.
src/ccache.cpp