summaryrefslogtreecommitdiffstats
path: root/src/graph.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-12-30 18:15:49 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 21:45:07 (GMT)
commit70fd0f590c3a46a4a9ff9a160f455c5c30f5b90a (patch)
tree6c0da3bb1ea04f301a62005a47997f013346536b /src/graph.h
parent6e21a236edd859b885f8c1bea8090bbdd76bf15d (diff)
downloadNinja-70fd0f590c3a46a4a9ff9a160f455c5c30f5b90a.zip
Ninja-70fd0f590c3a46a4a9ff9a160f455c5c30f5b90a.tar.gz
Ninja-70fd0f590c3a46a4a9ff9a160f455c5c30f5b90a.tar.bz2
plumb DepsLog load through Builder
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/graph.h b/src/graph.h
index b27111b..d943702 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -188,8 +188,9 @@ struct Edge {
/// ImplicitDepLoader loads implicit dependencies, as referenced via the
/// "depfile" attribute in build files.
struct ImplicitDepLoader {
- explicit ImplicitDepLoader(State* state, DiskInterface* disk_interface)
- : state_(state), disk_interface_(disk_interface) {}
+ ImplicitDepLoader(State* state, DepsLog* deps_log,
+ DiskInterface* disk_interface)
+ : state_(state), disk_interface_(disk_interface), deps_log_(deps_log) {}
bool LoadDepFile(Edge* edge, const string& path, string* err);
bool LoadDepsFromLog(Edge* edge, string* err);
@@ -213,11 +214,11 @@ struct ImplicitDepLoader {
/// DependencyScan manages the process of scanning the files in a graph
/// and updating the dirty/outputs_ready state of all the nodes and edges.
struct DependencyScan {
- DependencyScan(State* state, BuildLog* build_log,
+ DependencyScan(State* state, BuildLog* build_log, DepsLog* deps_log,
DiskInterface* disk_interface)
: build_log_(build_log),
disk_interface_(disk_interface),
- dep_loader_(state, disk_interface) {}
+ dep_loader_(state, deps_log, disk_interface) {}
/// Examine inputs, outputs, and command lines to judge whether an edge
/// needs to be re-run, and update outputs_ready_ and each outputs' |dirty_|