no error if deps log doesn't exist
authorEvan Martin <martine@danga.com>
Sun, 30 Dec 2012 18:11:13 +0000 (10:11 -0800)
committerEvan Martin <martine@danga.com>
Mon, 8 Apr 2013 21:45:07 +0000 (14:45 -0700)
src/deps_log.cc

index 744b031..23c9820 100644 (file)
@@ -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;
   }