diff options
author | Melody Horn <melody@boringcactus.com> | 2024-11-15 20:49:47 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-11-15 20:49:47 -0700 |
commit | bdac807c274d7b87cec2502f7981c16b7fceec7b (patch) | |
tree | 8112c8dc70f6fa56635c6e501e7da9d64f483c70 /src/makefile/target.rs | |
parent | 3ff7fec59481cda6d01e57bdd341c9a0efbcc2a0 (diff) | |
download | makers-bdac807c274d7b87cec2502f7981c16b7fceec7b.tar.gz makers-bdac807c274d7b87cec2502f7981c16b7fceec7b.zip |
implement secondary expansion
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> { |