From f4194dd9a38b46a0bac71fc135f8d9786f113092 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 8 Sep 2020 20:39:35 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20create=20.ccache-log?= =?utf8?q?=20when=20there=20is=20no=20object=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes #656. --- src/Context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context.cpp b/src/Context.cpp index 2d9155965..c78e1254b 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -48,7 +48,7 @@ Context::~Context() unlink_pending_tmp_files(); // Dump log buffer last to not lose any logs. - if (config.debug()) { + if (config.debug() && !args_info.output_obj.empty()) { std::string path = fmt::format("{}.ccache-log", args_info.output_obj); Logging::dump_log(path); } -- 2.47.3