summaryrefslogtreecommitdiffstats
path: root/src/build_log.h
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2019-11-16 15:09:06 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2019-12-23 13:11:09 (GMT)
commit8f87ee0469820d247fa20971c07dbad5f2aa744e (patch)
tree6e7fba2da028d4ebfbae6b475cdef636c9e50fd4 /src/build_log.h
parenta67718de4e5e4f78b6f66c6a3ecd0432941c7df3 (diff)
downloadNinja-8f87ee0469820d247fa20971c07dbad5f2aa744e.zip
Ninja-8f87ee0469820d247fa20971c07dbad5f2aa744e.tar.gz
Ninja-8f87ee0469820d247fa20971c07dbad5f2aa744e.tar.bz2
Add restat tool which recalculates all mtimes in the build log
Diffstat (limited to 'src/build_log.h')
-rw-r--r--src/build_log.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/build_log.h b/src/build_log.h
index 5268fab..d52dd3b 100644
--- a/src/build_log.h
+++ b/src/build_log.h
@@ -23,6 +23,7 @@ using namespace std;
#include "timestamp.h"
#include "util.h" // uint64_t
+struct DiskInterface;
struct Edge;
/// Can answer questions about the manifest for the BuildLog.
@@ -81,6 +82,10 @@ struct BuildLog {
/// Rewrite the known log entries, throwing away old data.
bool Recompact(const string& path, const BuildLogUser& user, string* err);
+ /// Restat all outputs in the log
+ bool Restat(StringPiece path, const DiskInterface& disk_interface,
+ std::string* err);
+
typedef ExternalStringHashMap<LogEntry*>::Type Entries;
const Entries& entries() const { return entries_; }