]> git.ipfire.org Git - thirdparty/ccache.git/commit
Let “ccache --hash-file” perform raw hashing again
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 18 Jun 2020 18:26:58 +0000 (20:26 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 18 Jun 2020 19:12:46 +0000 (21:12 +0200)
commit9875edc2e1de486d2db1131595a7a1a4fc858dce
treec09ee148acb3625e3dc1a5c28ddcc5031a748321
parente412b14afee24cf92a8f8aaf4fd2d0ac6fb9830e
Let “ccache --hash-file” perform raw hashing again

Unintended or not, #577 (213d9883) changed the behavior of “ccache
--hash-file” to use hash_binary_file, which essentially performs
hash(hash(path)) if the i-node cache is enabled, otherwise hash(path).
This means that “ccache --hash-file” behaves differently depending on if
i-node cache is enabled and also that it’s no longer usable for
benchmarking purposes.

Fix this by simply using “hash_file” again.
src/ccache.cpp