summaryrefslogtreecommitdiff
path: root/ninja/src/graph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ninja/src/graph.cc')
-rw-r--r--ninja/src/graph.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ninja/src/graph.cc b/ninja/src/graph.cc
index 65f92442170..71213421449 100644
--- a/ninja/src/graph.cc
+++ b/ninja/src/graph.cc
@@ -305,6 +305,10 @@ bool Edge::is_phony() const {
return rule_ == &State::kPhonyRule;
}
+bool Edge::use_console() const {
+ return pool() == &State::kConsolePool;
+}
+
void Node::Dump(const char* prefix) const {
printf("%s <%s 0x%p> mtime: %d%s, (:%s), ",
prefix, path().c_str(), this,