From 1511d2d85e1a2142461af1b4cce4e47350fec7d0 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 5 Aug 2017 20:50:30 +0300 Subject: Print progress to terminal by default --- build2/operation.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build2/operation.cxx') 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%. -- cgit v1.1