diff options
author | Evan Martin <martine@danga.com> | 2012-12-29 19:24:03 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-08 21:45:06 (GMT) |
commit | 00ffada47e1f9649ba76f12ff514f9434a182ef8 (patch) | |
tree | 4ddf85d4cbfa11a56660b12436be28693fcb2eb7 /src/graph.cc | |
parent | 695a8e5704d390c84737292b06a2ec97aab52093 (diff) | |
download | Ninja-00ffada47e1f9649ba76f12ff514f9434a182ef8.zip Ninja-00ffada47e1f9649ba76f12ff514f9434a182ef8.tar.gz Ninja-00ffada47e1f9649ba76f12ff514f9434a182ef8.tar.bz2 |
factor out implicit dep loading
Diffstat (limited to 'src/graph.cc')
-rw-r--r-- | src/graph.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/graph.cc b/src/graph.cc index 0f99698..cbd93b6 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -61,7 +61,7 @@ bool DependencyScan::RecomputeDirty(Edge* edge, string* err) { string depfile = edge->GetBinding("depfile"); if (!depfile.empty()) { - if (!LoadDepFile(edge, depfile, err)) { + if (!dep_loader_.LoadDepFile(edge, depfile, err)) { if (!err->empty()) return false; EXPLAIN("Edge targets are dirty because depfile '%s' is missing", @@ -282,7 +282,8 @@ bool Edge::GetBindingBool(const string& key) { return !GetBinding(key).empty(); } -bool DependencyScan::LoadDepFile(Edge* edge, const string& path, string* err) { +bool ImplicitDepLoader::LoadDepFile(Edge* edge, const string& path, + string* err) { METRIC_RECORD("depfile load"); string content = disk_interface_->ReadFile(path, err); if (!err->empty()) { |