]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Hash specs file actually used by GCC
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 7 Sep 2025 17:10:47 +0000 (19:10 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 8 Sep 2025 15:56:07 +0000 (17:56 +0200)
commit47248c40f48685c476363c279ac2cb469ca5836a
tree4ea65001639248f7010eab1c91d3f087aae7cdab
parent4b48ceb94932d3b07398b3650e2a584757c98760
fix: Hash specs file actually used by GCC

"gcc -specs=foo" (when "foo" doesn't include a slash) makes GCC search
in various system directories for the file, so ccache fails to hash the
file if it's found in such a directory.

Fix this by asking the compiler (using "-print-file-name") which file it
will actually read.

Fixes #1625.
src/ccache/ccache.cpp