]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Fall back to copying temporary preprocessed output file
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 26 May 2022 08:25:11 +0000 (10:25 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 26 May 2022 08:49:06 +0000 (10:49 +0200)
commitcbedccc9fa30f8958dc3e7fbdf900a952f63d5ad
treec56ece0d261a41e7fefcfe03f1b8ea482db791e0
parent2784ca31f7fae492b200a65120e21c9cdbb1a018
fix: Fall back to copying temporary preprocessed output file

[1] added a suitable file extension to the temporary file used for
capturing the preprocessed output by creating a hard link. This fails
when the temporary directory is on a file system that doesn't support
hard links.

Fix this by falling back to copying when hard-linking fails.

Closes #1079.

[1]: 4da9f2b474b7ee39cd54ab4261f90936f3c944ec
src/Result.cpp
src/ResultRetriever.cpp
src/Util.cpp
src/Util.hpp
src/ccache.cpp