aboutsummaryrefslogtreecommitdiff
path: root/build2/diagnostics.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/diagnostics.hxx')
-rw-r--r--build2/diagnostics.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/build2/diagnostics.hxx b/build2/diagnostics.hxx
index 39659c2..992e741 100644
--- a/build2/diagnostics.hxx
+++ b/build2/diagnostics.hxx
@@ -155,8 +155,9 @@ namespace build2
inline bool
show_progress (uint16_t max_verb)
{
- return ops.progress () ||
- (stderr_term && verb >= 1 && verb <= max_verb && !ops.no_progress ());
+ return diag_progress_option
+ ? *diag_progress_option
+ : stderr_term && verb >= 1 && verb <= max_verb;
}
// Diagnostic facility, base infrastructure.