From 6e21a236edd859b885f8c1bea8090bbdd76bf15d Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Sun, 30 Dec 2012 10:11:13 -0800 Subject: no error if deps log doesn't exist --- src/deps_log.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v0.12