]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Support masquerading as a compiler via copy or hard link
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 10 Jun 2022 14:17:03 +0000 (16:17 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 10 Jun 2022 17:54:37 +0000 (19:54 +0200)
commit451d92c801d6463bcc54c090b871a1d77f26d9d4
treeae0cafd63b561a0ed85c237a361274f50a5794cc
parent5b4fd92cdda6a39fb17e35ef25b85e7e156e25ab
feat: Support masquerading as a compiler via copy or hard link

Setting up ccache to masquerade as a compiler has always meant using
symbolic links, but there is no technical reason why that has to be the
case. This commit adds support for masquerading via a copy or hard link
of the ccache executable as well. This is mostly useful on platforms or
file systems where symbolic links are not supported.
16 files changed:
doc/INSTALL.md
doc/MANUAL.adoc
src/Util.cpp
src/Util.hpp
src/ccache.cpp
src/ccache.hpp
src/core/mainoptions.cpp
src/core/mainoptions.hpp
src/execute.cpp
src/execute.hpp
src/hashutil.cpp
src/storage/secondary/HttpStorage.cpp
src/util/file.hpp
test/suites/masquerading.bash
unittest/test_Util.cpp
unittest/test_ccache.cpp