projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c35718
)
no error if deps log doesn't exist
author
Evan Martin
<martine@danga.com>
Sun, 30 Dec 2012 18:11:13 +0000
(10:11 -0800)
committer
Evan Martin
<martine@danga.com>
Mon, 8 Apr 2013 21:45:07 +0000
(14:45 -0700)
src/deps_log.cc
patch
|
blob
|
history
diff --git
a/src/deps_log.cc
b/src/deps_log.cc
index
744b031
..
23c9820
100644
(file)
--- a/
src/deps_log.cc
+++ b/
src/deps_log.cc
@@
-83,6
+83,8
@@
bool DepsLog::Load(const string& path, State* state, string* err) {
char buf[32 << 10];
FILE* f = fopen(path.c_str(), "rb");
if (!f) {
+ if (errno == ENOENT)
+ return true;
*err = strerror(errno);
return false;
}