From 31a35ac86e41a698a5eafcc0b4cbfa64e2066c39 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sat, 3 Apr 2021 11:29:04 -0600 Subject: correctly handle conditional lines inside rule body --- src/makefile/macro.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/makefile/macro.rs') 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 { let mut result = String::new(); for token in text.tokens() { -- cgit v1.2.3