summaryrefslogtreecommitdiffstats
path: root/src/build_log.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-01-23 19:58:01 (GMT)
committerEvan Martin <martine@danga.com>2011-01-23 19:58:01 (GMT)
commit8a95f48ad50c380cc8d30e7cd6720535547ca2dd (patch)
treec65e03351d3b8013651a57545ed1b760b8d5aece /src/build_log.h
parent4d463b48b8feb0691719a520d7ab825ece377a52 (diff)
downloadNinja-8a95f48ad50c380cc8d30e7cd6720535547ca2dd.zip
Ninja-8a95f48ad50c380cc8d30e7cd6720535547ca2dd.tar.gz
Ninja-8a95f48ad50c380cc8d30e7cd6720535547ca2dd.tar.bz2
pass config into build log
Diffstat (limited to 'src/build_log.h')
-rw-r--r--src/build_log.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/build_log.h b/src/build_log.h
index 265f378..58a598e 100644
--- a/src/build_log.h
+++ b/src/build_log.h
@@ -2,6 +2,7 @@
#include <string>
using namespace std;
+struct BuildConfig;
struct Edge;
// Store a log of every command ran for every build.
@@ -14,6 +15,7 @@ struct Edge;
struct BuildLog {
BuildLog();
+ void SetConfig(BuildConfig* config) { config_ = config; }
bool OpenForWrite(const string& path, string* err);
void RecordCommand(Edge* edge, int time_ms);
void Close();
@@ -42,5 +44,6 @@ struct BuildLog {
typedef map<string, LogEntry*> Log;
Log log_;
FILE* log_file_;
+ BuildConfig* config_;
bool needs_recompaction_;
};