diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-04-05 08:07:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-04-05 08:07:47 +0200 |
commit | 2905180c48e4b8974d4dee1949a00fc8e7bcafc6 (patch) | |
tree | 0dde0185bcbe36da05200c64ab12bb3b9af528c6 /libbuild2/diagnostics.cxx | |
parent | 8b9701d2ad76a9a571c445b318557261a4922758 (diff) |
Allow creating context with bare minimum of initializations
This is used by bpkg to detect forwarded configurations without incurring
the full context creation overhead.
Diffstat (limited to 'libbuild2/diagnostics.cxx')
-rw-r--r-- | libbuild2/diagnostics.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libbuild2/diagnostics.cxx b/libbuild2/diagnostics.cxx index b31ff82..e164f10 100644 --- a/libbuild2/diagnostics.cxx +++ b/libbuild2/diagnostics.cxx @@ -18,11 +18,11 @@ using namespace butl; namespace build2 { - // Diagnostics state (verbosity level, progress, etc). Keep disabled until - // set from options. + // Diagnostics state (verbosity level, progress, etc). Keep default/disabled + // until set from options. // - uint16_t verb = 0; - bool silent = true; + uint16_t verb = 1; + bool silent = false; optional<bool> diag_progress_option; optional<bool> diag_color_option; @@ -621,7 +621,7 @@ namespace build2 int diag_buffer:: pipe (context& ctx, bool force) { - return (ctx.sched.serial () || ctx.no_diag_buffer) && !force ? 2 : -1; + return (ctx.sched->serial () || ctx.no_diag_buffer) && !force ? 2 : -1; } void diag_buffer:: @@ -629,7 +629,7 @@ namespace build2 { assert (state_ == state::closed && args0 != nullptr); - serial = ctx_.sched.serial (); + serial = ctx_.sched->serial (); nobuf = !serial && ctx_.no_diag_buffer; if (fd != nullfd) @@ -653,7 +653,7 @@ namespace build2 { assert (state_ == state::closed && args0 != nullptr); - serial = ctx_.sched.serial (); + serial = ctx_.sched->serial (); nobuf = !serial && ctx_.no_diag_buffer; this->args0 = args0; state_ = state::eof; |