summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2018-11-13 14:15:43 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2018-11-13 14:15:43 (GMT)
commitbf7107bb864d0383028202e3f4a4228c02302961 (patch)
treead4ecdd3f32ab606d5d664862a400c2f3d4641ad /src/build.cc
parent99c5c2287b11c8bab05fb2a8cf89dc4856c708bc (diff)
downloadNinja-bf7107bb864d0383028202e3f4a4228c02302961.zip
Ninja-bf7107bb864d0383028202e3f4a4228c02302961.tar.gz
Ninja-bf7107bb864d0383028202e3f4a4228c02302961.tar.bz2
Allow disabling of escape code stripping, fix #1475
Don't strip colors when CLICOLOR_FORCE is set to a non-zero value. This environment variable is also used by CMake's Make back-end.
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc
index 6b33024..ed219fd 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -154,7 +154,6 @@ void BuildStatus::BuildEdgeFinished(Edge* edge,
// (Launching subprocesses in pseudo ttys doesn't work because there are
// only a few hundred available on some systems, and ninja can launch
// thousands of parallel compile commands.)
- // TODO: There should be a flag to disable escape code stripping.
string final_output;
if (!printer_.supports_color())
final_output = StripAnsiEscapeCodes(output);