diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-24 11:25:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-24 11:25:05 +0200 |
commit | 2ad6aa134d9e8e755c8c738d0b51d72b0851c212 (patch) | |
tree | 9d914797975e61350d41c9fdb71ee008b2aacdfc /build2/diagnostics.hxx | |
parent | 85399cf60764b0fe54d44d4a5bacb54feae8dd62 (diff) |
Constrain access to options to build system driver main() only
Diffstat (limited to 'build2/diagnostics.hxx')
-rw-r--r-- | build2/diagnostics.hxx | 5 |
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. |