From 1acb42397f86adeec1a8ec63f311f1d4221ac025 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Oct 2021 07:55:43 +0200 Subject: Add build.progress global variable with --[no-]progress option value --- libbuild2/context.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx index 36b70b8..c016a40 100644 --- a/libbuild2/context.cxx +++ b/libbuild2/context.cxx @@ -167,6 +167,17 @@ namespace build2 // set ("build.verbosity", uint64_t (verb)); + // Build system progress diagnostics. + // + // Note that it can be true, false, or NULL if progress was neither + // requested nor suppressed. + // + { + value& v (gs.assign (vp.insert ("build.progress", v_g))); + if (diag_progress_option) + v = *diag_progress_option; + } + // Build system version (similar to what we do in the version module // except here we don't include package epoch/revision). // -- cgit v1.1