aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg_System.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-04-05 17:37:36 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-04-05 17:37:36 -0700
commitd03171d12212b6cc8c41b45b4b1443f7123d8bc9 (patch)
tree01f4ee0c1127987b23c2b27aa8f16cdc3c536a14 /toolsrc/src/vcpkg_System.cpp
parentbb22c050e90e8985ed706097f4d3ce33cc7d425f (diff)
downloadvcpkg-d03171d12212b6cc8c41b45b4b1443f7123d8bc9.tar.gz
vcpkg-d03171d12212b6cc8c41b45b4b1443f7123d8bc9.zip
[vcpkg-debug] Add debug messages for calls to cmd_execute()
Diffstat (limited to 'toolsrc/src/vcpkg_System.cpp')
-rw-r--r--toolsrc/src/vcpkg_System.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp
index 4329219c2..6bb941d82 100644
--- a/toolsrc/src/vcpkg_System.cpp
+++ b/toolsrc/src/vcpkg_System.cpp
@@ -102,7 +102,11 @@ namespace vcpkg::System
// Basically we are wrapping it in quotes
const std::wstring& actual_cmd_line = Strings::wformat(LR"###("%s")###", cmd_line);
+ if (g_debugging)
+ System::println("[DEBUG] _wsystem(%s)", Strings::utf16_to_utf8(actual_cmd_line));
int exit_code = _wsystem(actual_cmd_line.c_str());
+ if (g_debugging)
+ System::println("[DEBUG] _wsystem() returned %d", exit_code);
return exit_code;
}