summaryrefslogtreecommitdiffstats
path: root/src/build_log.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-06-15 20:45:37 (GMT)
committerEvan Martin <martine@danga.com>2012-06-15 20:45:37 (GMT)
commitde275b185943c588b25de31998133babc298a0e7 (patch)
treec831b1d94681da67af479d2a46ad8a7e0f0a2539 /src/build_log.h
parent8f686fae940e9d2dfb86cb8cbb5ee11176ae03de (diff)
parentd59e82c4a098f4e3987871fae0fbd6347b64b1f2 (diff)
downloadNinja-de275b185943c588b25de31998133babc298a0e7.zip
Ninja-de275b185943c588b25de31998133babc298a0e7.tar.gz
Ninja-de275b185943c588b25de31998133babc298a0e7.tar.bz2
Merge pull request #329 from nico/hash2
Only store command hashes in the build log.
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;
}