diff options
author | Evan Martin <martine@danga.com> | 2013-04-10 19:49:23 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-10 19:49:23 (GMT) |
commit | 53339104c51139f7ed5f1265bae3062d157f5311 (patch) | |
tree | 8e40fa910c80d33e2dc3b17dacf5ca53c7a6b2bd /src/build.h | |
parent | 808393fcf01d5211ab062acd3dea46ed8041f829 (diff) | |
download | Ninja-53339104c51139f7ed5f1265bae3062d157f5311.zip Ninja-53339104c51139f7ed5f1265bae3062d157f5311.tar.gz Ninja-53339104c51139f7ed5f1265bae3062d157f5311.tar.bz2 |
always use output timestamp for deps
Using the timestamp of the .d file was wrong. It can be written
at a different time than the output, and it is immediately deleted
after parsing; only the output remains for subsequent timestamp
comparison purposes, so always use the output's timestamp. (This
is how the code worked on Windows already.)
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/build.h b/src/build.h index ca75ade..5cbd2a6 100644 --- a/src/build.h +++ b/src/build.h @@ -178,8 +178,7 @@ struct Builder { private: bool ExtractDeps(CommandRunner::Result* result, const string& deps_type, - vector<Node*>* deps_nodes, TimeStamp* deps_mtime, - string* err); + vector<Node*>* deps_nodes, string* err); DiskInterface* disk_interface_; DependencyScan scan_; |