summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2024-03-22 20:12:05 (GMT)
committerGitHub <noreply@github.com>2024-03-22 20:12:05 (GMT)
commit903a05ce0e9befa8fb2767dd83a5a36499771087 (patch)
tree0b2ef21ff293c2553a42a677390fa020556fa371 /src
parent481889bb5f3faa5b83116f6e583564e26bbabeec (diff)
parent878aa468d144d854005a6d4f0c7785a5185f0bf9 (diff)
downloadNinja-903a05ce0e9befa8fb2767dd83a5a36499771087.zip
Ninja-903a05ce0e9befa8fb2767dd83a5a36499771087.tar.gz
Ninja-903a05ce0e9befa8fb2767dd83a5a36499771087.tar.bz2
Merge pull request #2390 from jheydebrand/handle-deleted-logs-during-recompact
Gracefully handle outdated .ninja_log during '-t recompact'
Diffstat (limited to 'src')
-rw-r--r--src/build_log.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_log.cc b/src/build_log.cc
index cf21182..792d1a3 100644
--- a/src/build_log.cc
+++ b/src/build_log.cc
@@ -291,9 +291,9 @@ LoadStatus BuildLog::Load(const string& path, string* err) {
if (invalid_log_version) {
fclose(file);
unlink(path.c_str());
- // Don't report this as a failure. An empty build log will cause
+ // Don't report this as a failure. A missing build log will cause
// us to rebuild the outputs anyway.
- return LOAD_SUCCESS;
+ return LOAD_NOT_FOUND;
}
}