diff options
author | Maxim Kalaev <maximus.ka@gmail.com> | 2013-06-27 18:55:38 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-07-20 04:41:30 (GMT) |
commit | b209096873434eaee96068251d02b352ff58eb8f (patch) | |
tree | 5a5b31805301ecc7e700da948dec5abc45d57a69 /src | |
parent | 9bb715e1496572681815fad0142b32236cf6e987 (diff) | |
download | Ninja-b209096873434eaee96068251d02b352ff58eb8f.zip Ninja-b209096873434eaee96068251d02b352ff58eb8f.tar.gz Ninja-b209096873434eaee96068251d02b352ff58eb8f.tar.bz2 |
Removing a redundant stat() call with 'deps' and 'restat = 1'
Diffstat (limited to 'src')
-rw-r--r-- | src/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc index 5cf9d27..52dac87 100644 --- a/src/build.cc +++ b/src/build.cc @@ -763,7 +763,7 @@ void Builder::FinishCommand(CommandRunner::Result* result) { } string depfile = edge->GetBinding("depfile"); - if (restat_mtime != 0 && !depfile.empty()) { + if (restat_mtime != 0 && deps_type.empty() && !depfile.empty()) { TimeStamp depfile_mtime = disk_interface_->Stat(depfile); if (depfile_mtime > restat_mtime) restat_mtime = depfile_mtime; |