From bdac807c274d7b87cec2502f7981c16b7fceec7b Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 15 Nov 2024 20:49:47 -0700 Subject: implement secondary expansion --- src/makefile/target.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/makefile/target.rs') 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 for HashMap { -- cgit v1.2.3