summaryrefslogtreecommitdiffstats
path: root/src/deps_log.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-12-30 18:11:13 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 21:45:07 (GMT)
commit6e21a236edd859b885f8c1bea8090bbdd76bf15d (patch)
tree1a2d8a9098e7920e5b9d1afab5ed074de726cfd0 /src/deps_log.cc
parent7c357182a4f672b9bdb901e5710887613eef20e8 (diff)
downloadNinja-6e21a236edd859b885f8c1bea8090bbdd76bf15d.zip
Ninja-6e21a236edd859b885f8c1bea8090bbdd76bf15d.tar.gz
Ninja-6e21a236edd859b885f8c1bea8090bbdd76bf15d.tar.bz2
no error if deps log doesn't exist
Diffstat (limited to 'src/deps_log.cc')
-rw-r--r--src/deps_log.cc2
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;
}