aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-08-05 20:50:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-08-06 13:19:00 +0300
commit1511d2d85e1a2142461af1b4cce4e47350fec7d0 (patch)
tree72ebd1fdd89b76bdd8108270913485633934da51 /build2/operation.cxx
parent4ea8b31ec37dc1c11f1c80e558361951253f1c58 (diff)
Print progress to terminal by default
Diffstat (limited to 'build2/operation.cxx')
-rw-r--r--build2/operation.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx
index 60555b1..ca8382c 100644
--- a/build2/operation.cxx
+++ b/build2/operation.cxx
@@ -105,7 +105,8 @@ namespace build2
//
scheduler::monitor_guard mg;
string what;
- if (ops.progress ())
+ if (ops.progress () ||
+ (stderr_term && verb >= 1 && verb <= 2 && !ops.no_progress ()))
{
size_t init (target_count.load (memory_order_relaxed));
size_t incr (init > 100 ? 10 : 1);
@@ -251,7 +252,7 @@ namespace build2
//
scheduler::monitor_guard mg;
string what;
- if (ops.progress ())
+ if (ops.progress () || (stderr_term && verb == 1 && !ops.no_progress ()))
{
size_t init (target_count.load (memory_order_relaxed));
size_t incr (init / 100); // 1%.