Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 4baea2b

Browse files
committed
Revert "Fix confusing smart console output from concurrent builds"
This reverts commit 52c1d0c. Fixes ninja-build#1418.
1 parent 775c8e8 commit 4baea2b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/build.cc

-13
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include <assert.h>
1818
#include <errno.h>
19-
#include <limits.h>
2019
#include <stdio.h>
2120
#include <stdlib.h>
2221
#include <functional>
@@ -131,18 +130,6 @@ void BuildStatus::BuildEdgeFinished(Edge* edge,
131130

132131
if (!edge->use_console())
133132
PrintStatus(edge, kEdgeFinished);
134-
if (printer_.is_smart_terminal()) {
135-
int oldest_start = INT_MAX;
136-
Edge* oldest = NULL;
137-
for (i = running_edges_.begin(); i != running_edges_.end(); i++) {
138-
if (i->second < oldest_start) {
139-
oldest_start = i->second;
140-
oldest = i->first;
141-
}
142-
}
143-
if (oldest)
144-
PrintStatus(oldest, kEdgeRunning);
145-
}
146133

147134
// Print the command that is spewing before printing its output.
148135
if (!success) {

src/build.h

-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ struct BuildStatus {
222222

223223
enum EdgeStatus {
224224
kEdgeStarted,
225-
kEdgeRunning,
226225
kEdgeFinished,
227226
};
228227

0 commit comments

Comments
 (0)