summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/build.cc b/src/build.cc
index a16593b..ecb35a4 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -1067,8 +1067,7 @@ bool Builder::ExtractDeps(CommandRunner::Result* result,
// complexity in IncludesNormalize::Relativize.
deps_nodes->push_back(state_->GetNode(*i, ~0u));
}
- } else
- if (deps_type == "gcc") {
+ } else if (deps_type == "gcc") {
string depfile = result->edge->GetUnescapedDepfile();
if (depfile.empty()) {
*err = string("edge with deps=gcc but no depfile makes no sense");