diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-21 07:55:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-21 07:55:43 +0200 |
commit | 1acb42397f86adeec1a8ec63f311f1d4221ac025 (patch) | |
tree | e71b899890fed3b43629aaabbc850cb90630f8b7 | |
parent | a8934f266ef8bc5c80584d3c0108c6038e740dba (diff) |
Add build.progress global variable with --[no-]progress option value
-rw-r--r-- | libbuild2/context.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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<bool> ("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). // |