summaryrefslogtreecommitdiffstats
path: root/src/debug_flags.cc
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-04-28 19:36:49 (GMT)
committerColin Cross <ccross@android.com>2016-04-29 19:21:46 (GMT)
commitaf4973d2251bf9bc616ceb5f9d9d64dd948ed569 (patch)
tree9da4c4ac38b96a3dcb998c53002233398dbe1aeb /src/debug_flags.cc
parentf1b5d2bf37ba6cd10bf7ab4b51877d68eae97cbc (diff)
downloadNinja-af4973d2251bf9bc616ceb5f9d9d64dd948ed569.zip
Ninja-af4973d2251bf9bc616ceb5f9d9d64dd948ed569.tar.gz
Ninja-af4973d2251bf9bc616ceb5f9d9d64dd948ed569.tar.bz2
Fix NINJA_STATUS %r on dumb terminals
PR #999 made dumb terminals only output when edges finish. PrintStatus is called after finished_edges_ is incremented, which means the calculation for running edges will always return 1 less than the real number of running processes. This happens on smart terminals too, but ninja will immediately print the status for the next edge with starting_edges_ incremented, so the incorrect value is never visible. Pass a boolean specifying whether the status is being printed on an edge finishing, and if so count the edge that just finished as being running.
Diffstat (limited to 'src/debug_flags.cc')
0 files changed, 0 insertions, 0 deletions