aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2020-03-10 10:24:17 -0700
committerRobert Schumacher <roschuma@microsoft.com>2020-03-10 10:27:36 -0700
commit60cd1202d9064971f7eeaecb8999b55377f95e6d (patch)
tree54eb27244623e53a981f7106e5549acb8f5cc3db /toolsrc/src/vcpkg.cpp
parent7893f7c76c8f61d971b530b120a2261d80b85592 (diff)
downloadvcpkg-60cd1202d9064971f7eeaecb8999b55377f95e6d.tar.gz
vcpkg-60cd1202d9064971f7eeaecb8999b55377f95e6d.zip
[vcpkg] Introduce Job Objects to improve ctrl-c performance on Windows
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
-rw-r--r--toolsrc/src/vcpkg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp
index 1f212dd94..c2ee42200 100644
--- a/toolsrc/src/vcpkg.cpp
+++ b/toolsrc/src/vcpkg.cpp
@@ -269,7 +269,7 @@ int wmain(int, const wchar_t* const* const);
#include <shellapi.h>
int main(int argc, const char* const* const /*argv*/)
{
- wchar_t **wargv;
+ wchar_t** wargv;
wargv = CommandLineToArgvW(GetCommandLineW(), &argc);
return wmain(argc, wargv);
}
@@ -292,6 +292,7 @@ int main(const int argc, const char* const* const argv)
SetConsoleCP(CP_UTF8);
SetConsoleOutputCP(CP_UTF8);
+ System::initialize_global_job_object();
#endif
Checks::register_global_shutdown_handler([]() {