diff options
Diffstat (limited to 'src/makefile/target.rs')
-rw-r--r-- | src/makefile/target.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/makefile/target.rs b/src/makefile/target.rs index e106c54..9f81802 100644 --- a/src/makefile/target.rs +++ b/src/makefile/target.rs @@ -152,6 +152,10 @@ impl StaticTargetSet { self.data.insert(target.name.clone(), target); } } + + pub fn has(&self, name: &str) -> bool { + self.data.contains_key(name) + } } impl From<StaticTargetSet> for HashMap<String, Target> { |