From 2ad6aa134d9e8e755c8c738d0b51d72b0851c212 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Jun 2019 11:25:05 +0200 Subject: Constrain access to options to build system driver main() only --- build2/diagnostics.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build2/diagnostics.hxx') 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. -- cgit v1.1