summaryrefslogtreecommitdiffstats
path: root/src/build_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_log.h')
-rw-r--r--src/build_log.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/build_log.h b/src/build_log.h
index da8e726..98ef7b3 100644
--- a/src/build_log.h
+++ b/src/build_log.h
@@ -49,14 +49,16 @@ struct BuildLog {
struct LogEntry {
string output;
- string command;
+ uint64_t command_hash;
int start_time;
int end_time;
TimeStamp restat_mtime;
+ static uint64_t HashCommand(StringPiece command);
+
// Used by tests.
bool operator==(const LogEntry& o) {
- return output == o.output && command == o.command &&
+ return output == o.output && command_hash == o.command_hash &&
start_time == o.start_time && end_time == o.end_time &&
restat_mtime == o.restat_mtime;
}