summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2018-11-05 15:48:31 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2018-11-05 15:49:39 (GMT)
commit10e66a153daa7b8ce664948031136ba27e8dfeba (patch)
treeec5e6f63a7f772f798d400a4d3624591a85625e7 /src/build.cc
parent0eb7199902ce1566a39caa8f782c417a59095b6a (diff)
downloadNinja-10e66a153daa7b8ce664948031136ba27e8dfeba.zip
Ninja-10e66a153daa7b8ce664948031136ba27e8dfeba.tar.gz
Ninja-10e66a153daa7b8ce664948031136ba27e8dfeba.tar.bz2
Do not always strip colored output in verbose mode, fix #1214
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc
index c24d6a9..9852a50 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -169,7 +169,7 @@ void BuildStatus::BuildEdgeFinished(Edge* edge,
// thousands of parallel compile commands.)
// TODO: There should be a flag to disable escape code stripping.
string final_output;
- if (!printer_.is_smart_terminal())
+ if (!printer_.supports_color())
final_output = StripAnsiEscapeCodes(output);
else
final_output = output;