Global variable g_debugging now declared in vcpkglib.h
MODIFY
include/vcpkglib.h
include/vcpkglib.h
namespace vcpkg
{
+ extern bool g_debugging;
+
StatusParagraphs database_load_check(const vcpkg_paths& paths);
void write_update(const vcpkg_paths& paths, const StatusParagraph& p);

MODIFY
src/vcpkg.cpp
src/vcpkg.cpp
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
-#include <iostream>
#include <fstream>
#include <memory>
#include <cassert>
#include "Paragraphs.h"
#include "vcpkg_Strings.h"
#include "vcpkg_Chrono.h"
+#include "vcpkglib.h"
using namespace vcpkg;
-bool g_debugging = false;
-
void invalid_command(const std::string& cmd)
{
System::println(System::color::error, "invalid command: %s", cmd);

MODIFY
src/vcpkglib.cpp
src/vcpkglib.cpp
namespace vcpkg
{
+ bool g_debugging = false;
+
static StatusParagraphs load_current_database(const fs::path& vcpkg_dir_status_file, const fs::path& vcpkg_dir_status_file_old)
{
if (!fs::exists(vcpkg_dir_status_file))

Global variable g_debugging now declared in vcpkglib.h