diff options
-rw-r--r-- | src/deps_log.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc index 744b031..23c9820 100644 --- 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; } |