aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg_System.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-08-23 16:17:53 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-08-24 16:29:40 -0700
commite237682cad4eaa582a10b5ad03a59ca6449e0795 (patch)
tree6850152901be7ab8ea7462fac572850d68a2dbde /toolsrc/src/vcpkg_System.cpp
parent8fc510e1f946208409bd8ba1159b2e19bf553909 (diff)
downloadvcpkg-e237682cad4eaa582a10b5ad03a59ca6449e0795.tar.gz
vcpkg-e237682cad4eaa582a10b5ad03a59ca6449e0795.zip
Introduce GlobalState struct
Diffstat (limited to 'toolsrc/src/vcpkg_System.cpp')
-rw-r--r--toolsrc/src/vcpkg_System.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp
index 2ad120e4c..2d6246d19 100644
--- a/toolsrc/src/vcpkg_System.cpp
+++ b/toolsrc/src/vcpkg_System.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "vcpkg_Checks.h"
+#include "vcpkg_GlobalState.h"
#include "vcpkg_System.h"
#include "vcpkglib.h"
@@ -94,7 +95,7 @@ namespace vcpkg::System
};
// Flush stdout before launching external process
- fflush(nullptr);
+ fflush(nullptr);
std::wstring env_cstr;
@@ -151,7 +152,7 @@ namespace vcpkg::System
int cmd_execute(const CWStringView cmd_line)
{
// Flush stdout before launching external process
- fflush(nullptr);
+ fflush(nullptr);
// Basically we are wrapping it in quotes
const std::wstring& actual_cmd_line = Strings::wformat(LR"###("%s")###", cmd_line);
@@ -302,7 +303,7 @@ namespace vcpkg::Debug
{
void println(const CStringView message)
{
- if (g_debugging)
+ if (GlobalState::debugging)
{
System::println("[DEBUG] %s", message);
}
@@ -310,7 +311,7 @@ namespace vcpkg::Debug
void println(const System::Color c, const CStringView message)
{
- if (g_debugging)
+ if (GlobalState::debugging)
{
System::println(c, "[DEBUG] %s", message);
}