aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile/macro.rs')
-rw-r--r--src/makefile/macro.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs
index f788edc..7fbb4a6 100644
--- a/src/makefile/macro.rs
+++ b/src/makefile/macro.rs
@@ -82,6 +82,10 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
self.data.remove(name)
}
+ pub fn extend(&mut self, other: Set) {
+ self.data.extend(other.data);
+ }
+
pub fn expand(&self, text: &TokenString) -> Result<String> {
let mut result = String::new();
for token in text.tokens() {