diff options
author | Nico Weber <thakis@chromium.org> | 2013-07-24 21:07:12 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2013-07-24 21:07:12 (GMT) |
commit | 2eecb07bdaedca1a37cf499ce7d6e6491e2046c8 (patch) | |
tree | 6bf3cc720adc6b38aaa9305e53dfbbcda7a9ede5 /src/build_log.h | |
parent | f6f00aa40f0c541df06747228b1cc928d4972b3e (diff) | |
download | Ninja-2eecb07bdaedca1a37cf499ce7d6e6491e2046c8.zip Ninja-2eecb07bdaedca1a37cf499ce7d6e6491e2046c8.tar.gz Ninja-2eecb07bdaedca1a37cf499ce7d6e6491e2046c8.tar.bz2 |
Build log write error checking.
Like f6f00aa40f0c541df06, but for the build log instead of the deps log.
Diffstat (limited to 'src/build_log.h')
-rw-r--r-- | src/build_log.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_log.h b/src/build_log.h index 6eae89f..eeac5b3 100644 --- a/src/build_log.h +++ b/src/build_log.h @@ -37,7 +37,7 @@ struct BuildLog { ~BuildLog(); bool OpenForWrite(const string& path, string* err); - void RecordCommand(Edge* edge, int start_time, int end_time, + bool RecordCommand(Edge* edge, int start_time, int end_time, TimeStamp restat_mtime = 0); void Close(); @@ -69,7 +69,7 @@ struct BuildLog { LogEntry* LookupByOutput(const string& path); /// Serialize an entry into a log file. - void WriteEntry(FILE* f, const LogEntry& entry); + bool WriteEntry(FILE* f, const LogEntry& entry); /// Rewrite the known log entries, throwing away old data. bool Recompact(const string& path, string* err); |