]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Allow nonexistent include files in preprocessor mode 4.9-maint
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 20:13:21 +0000 (21:13 +0100)
commit33d390bb249ddf1a6b3bdecede71b12c70000da3
tree2a263f37311e105b27daae41656409d7c46b0b2c
parent0446ba8eb8f5957c538e83d998ca0bf85190b114
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.

(cherry picked from commit 08da6cd4da41fa213d387f52e3cf1d1f2a42366b)
src/ccache.cpp