From: Joel Rosdahl Date: Sun, 30 Mar 2025 09:08:30 +0000 (+0200) Subject: chore: Log usage of cmd_args temporary file earlier X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d89aef8a0d945910f85b1d57d4dc8ac3923e9e6b;p=thirdparty%2Fccache.git chore: Log usage of cmd_args temporary file earlier --- diff --git a/src/ccache/execute.cpp b/src/ccache/execute.cpp index f3e1ad74..7b1b7d23 100644 --- a/src/ccache/execute.cpp +++ b/src/ccache/execute.cpp @@ -233,11 +233,11 @@ win32execute(const char* const* argv, if (args.length() > 8192) { auto tmp_file = util::value_or_throw( util::TemporaryFile::create(FMT("{}/cmd_args", temp_dir))); + LOG("Arguments from {}", tmp_file.path); args = util::format_argv_as_win32_command_string(argv + 1, true); util::write_fd(*tmp_file.fd, args.data(), args.length()); args = FMT(R"("{}" "@{}")", argv[0], tmp_file.path); tmp_file_path = tmp_file.path; - LOG("Arguments from {}", tmp_file.path); } std::string sh = win32getshell(argv[0]);