summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-11-12 01:13:30 (GMT)
committerNico Weber <nicolasweber@gmx.de>2015-11-12 01:13:30 (GMT)
commita65240d52c451f69d9b2f1252738d67eb99a296c (patch)
tree89e3b68fbb950f2c6f001390eb8f433c73119559 /src
parent935788e2c019706a0f04b1b759c6751f1c2ee3c7 (diff)
parenta4751630cd6d2d753505a6fd222277cf2d99a135 (diff)
downloadNinja-a65240d52c451f69d9b2f1252738d67eb99a296c.zip
Ninja-a65240d52c451f69d9b2f1252738d67eb99a296c.tar.gz
Ninja-a65240d52c451f69d9b2f1252738d67eb99a296c.tar.bz2
Merge pull request #999 from colincross/dumbstatus
Print status when edge finishes on dumb terminals
Diffstat (limited to 'src')
-rw-r--r--src/build.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build.cc b/src/build.cc
index b8c2560..0e9a399 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -96,7 +96,8 @@ void BuildStatus::BuildEdgeStarted(Edge* edge) {
running_edges_.insert(make_pair(edge, start_time));
++started_edges_;
- PrintStatus(edge);
+ if (edge->use_console() || printer_.is_smart_terminal())
+ PrintStatus(edge);
if (edge->use_console())
printer_.SetConsoleLocked(true);
@@ -121,7 +122,7 @@ void BuildStatus::BuildEdgeFinished(Edge* edge,
if (config_.verbosity == BuildConfig::QUIET)
return;
- if (!edge->use_console() && printer_.is_smart_terminal())
+ if (!edge->use_console())
PrintStatus(edge);
// Print the command that is spewing before printing its output.