]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Reduce the risk of false positive direct mode hits
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Mar 2024 13:42:00 +0000 (14:42 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Mar 2024 20:54:50 +0000 (21:54 +0100)
commitb672f7ebad0967551d48cf93a65e052fb5cb3049
tree2501a5969eb7709a32baeeda8bf3f74e71e74d9a
parent251f24409f80a711ca96ccd2288961cb4eb68aad
fix: Reduce the risk of false positive direct mode hits

To reduce the risk of getting a false positive hit when a directory
early in the include path now exists, record whether include directories
and similar input paths exist. Note that this is not 100% waterproof
since it only detects newly appearing directories and not newly
appearing header files.
src/ccache/ccache.cpp
src/ccache/compopt.cpp
src/ccache/compopt.hpp
test/suites/direct.bash
unittest/test_compopt.cpp