From: Joel Rosdahl Date: Thu, 30 Jul 2026 14:54:12 +0000 (+0200) Subject: fix: Bail properly when failing to hash Clang config file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f669fab34a3736b81ebee2a71057689de4cd550;p=thirdparty%2Fccache.git fix: Bail properly when failing to hash Clang config file --- diff --git a/src/ccache/ccache.cpp b/src/ccache/ccache.cpp index 86d3f81b2..352809dc4 100644 --- a/src/ccache/ccache.cpp +++ b/src/ccache/ccache.cpp @@ -2284,6 +2284,7 @@ hash_argument(const Context& ctx, hash.hash_delimiter("config"); if (auto r = hash.hash_file(path); !r) { LOG("Failed to hash option file {}: {}", path, r.error()); + return tl::unexpected(Statistic::bad_input_file); } return {}; }