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.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs
index 65a87d1..c8a9542 100644
--- a/src/makefile/macro.rs
+++ b/src/makefile/macro.rs
@@ -183,7 +183,12 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
.or_else(|| self.parent.and_then(|p| p.get(name).cloned()))
}
- pub fn extend(&mut self, other: HashMap<String, Macro>, other_exports: ExportConfig) {
+ pub fn extend(
+ &mut self,
+ other: HashMap<String, Macro>,
+ #[cfg(feature = "full")] other_exports: ExportConfig,
+ ) {
+ #[cfg(feature = "full")]
match (&mut self.exported, other_exports) {
(ExportConfig::Only(se), ExportConfig::Only(oe)) => {
se.extend(oe);