summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/build.cc b/src/build.cc
index cc877e5..cfe2c65 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -576,10 +576,9 @@ bool Builder::StartEdge(Edge* edge, string* err) {
return false;
}
- // Compute command and start it.
- string command = edge->EvaluateCommand();
+ // start command computing and run it
if (!command_runner_->StartCommand(edge)) {
- err->assign("command '" + command + "' failed.");
+ err->assign("command '" + edge->EvaluateCommand() + "' failed.");
return false;
}