diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2019-05-18 18:15:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-18 18:15:31 -0700 |
| commit | 77af264118522788e24e463309220f97dcff0a79 (patch) | |
| tree | b753e1abf41214c6d4a4e4a214bffcd541c9b610 /toolsrc/src/vcpkg.cpp | |
| parent | 469543f9429e6b8f0699cb17d6309f127ae8eb59 (diff) | |
| download | vcpkg-77af264118522788e24e463309220f97dcff0a79.tar.gz vcpkg-77af264118522788e24e463309220f97dcff0a79.zip | |
[vcpkg] Fix regression in `--debug`. Remove old `features` featureflag. (#6507)
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp index 2c0f562b6..9102205d8 100644 --- a/toolsrc/src/vcpkg.cpp +++ b/toolsrc/src/vcpkg.cpp @@ -294,11 +294,11 @@ int main(const int argc, const char* const* const argv) Checks::register_global_shutdown_handler([]() { const auto elapsed_us_inner = GlobalState::timer.lock()->microseconds(); - bool debugging = GlobalState::debugging; + bool debugging = Debug::g_debugging; auto metrics = Metrics::g_metrics.lock(); metrics->track_metric("elapsed_us", elapsed_us_inner); - GlobalState::debugging = false; + Debug::g_debugging = false; metrics->flush(); #if defined(_WIN32) @@ -337,14 +337,13 @@ int main(const int argc, const char* const* const argv) const VcpkgCmdArguments args = VcpkgCmdArguments::create_from_command_line(argc, argv); - if (const auto p = args.featurepackages.get()) GlobalState::feature_packages = *p; if (const auto p = args.binarycaching.get()) GlobalState::g_binary_caching = *p; if (const auto p = args.printmetrics.get()) Metrics::g_metrics.lock()->set_print_metrics(*p); if (const auto p = args.sendmetrics.get()) Metrics::g_metrics.lock()->set_send_metrics(*p); - if (const auto p = args.debug.get()) GlobalState::debugging = *p; + if (const auto p = args.debug.get()) Debug::g_debugging = *p; - if (GlobalState::debugging) + if (Debug::g_debugging) { inner(args); Checks::exit_fail(VCPKG_LINE_INFO); |
