summaryrefslogtreecommitdiff
path: root/ninja/src/build.h
diff options
context:
space:
mode:
Diffstat (limited to 'ninja/src/build.h')
-rw-r--r--ninja/src/build.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ninja/src/build.h b/ninja/src/build.h
index 2715c0cf722..a872f6cf282 100644
--- a/ninja/src/build.h
+++ b/ninja/src/build.h
@@ -51,7 +51,7 @@ struct Plan {
Edge* FindWork();
/// Returns true if there's more work to be done.
- bool more_to_do() const { return wanted_edges_; }
+ bool more_to_do() const { return (command_edges_ > 0); }
/// Dumps the current state of the plan.
void Dump();
@@ -163,7 +163,10 @@ struct Builder {
bool Build(string* err);
bool StartEdge(Edge* edge, string* err);
- void FinishCommand(CommandRunner::Result* result);
+
+ /// Update status ninja logs following a command termination.
+ /// @return false if the build can not proceed further due to a fatal error.
+ bool FinishCommand(CommandRunner::Result* result, string* err);
/// Used for tests.
void SetBuildLog(BuildLog* log) {