diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-06 18:35:25 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-06 18:35:25 -0600 |
commit | c76e7e969b2277a0b4e00aad4a43cfbd5862869e (patch) | |
tree | adcd6dcd9667c21833061a56802d476ed37128b8 /src/makefile/macro.rs | |
parent | 6dbb6548990841e7aeb991b76a58e14d237e79d0 (diff) | |
download | makers-c76e7e969b2277a0b4e00aad4a43cfbd5862869e.tar.gz makers-c76e7e969b2277a0b4e00aad4a43cfbd5862869e.zip |
don't do exports on POSIX
Diffstat (limited to 'src/makefile/macro.rs')
-rw-r--r-- | src/makefile/macro.rs | 7 |
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); |