diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2023-02-02 20:27:37 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2023-02-03 14:22:24 +0100 |
commit | 4b4f3bba6f53071b4d197178a9ce444e06df7bc6 (patch) | |
tree | 47743e67bfe069f44fe1807f499ece79eaa5c414 | |
parent | 306aa8eebfe7f3442c176ed5ebd42f8767b0125c (diff) | |
download | ccache-4b4f3bba6f53071b4d197178a9ce444e06df7bc6.tar.gz |
feat: Log executed command lines on Windows
-rw-r--r-- | src/execute.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/execute.cpp b/src/execute.cpp index a217d658..de684fd0 100644 --- a/src/execute.cpp +++ b/src/execute.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2002 Andrew Tridgell -// Copyright (C) 2011-2022 Joel Rosdahl and other contributors +// Copyright (C) 2011-2023 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -58,6 +58,8 @@ static int win32execute(const char* path, int execute(Context& ctx, const char* const* argv, Fd&& fd_out, Fd&& fd_err) { + LOG("Executing {}", Util::format_argv_for_logging(argv)); + return win32execute(argv[0], argv, 1, |