diff options
Diffstat (limited to 'src/graph.cc')
-rw-r--r-- | src/graph.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graph.cc b/src/graph.cc index 376b911..b8b870b 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -406,16 +406,16 @@ std::string Edge::GetBinding(const std::string& key) const { return env.LookupVariable(key); } -bool Edge::GetBindingBool(const string& key) { +bool Edge::GetBindingBool(const string& key) const { return !GetBinding(key).empty(); } -string Edge::GetUnescapedDepfile() { +string Edge::GetUnescapedDepfile() const { EdgeEnv env(this, EdgeEnv::kDoNotEscape); return env.LookupVariable("depfile"); } -string Edge::GetUnescapedDyndep() { +string Edge::GetUnescapedDyndep() const { EdgeEnv env(this, EdgeEnv::kDoNotEscape); return env.LookupVariable("dyndep"); } |