aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/mod.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-06 18:35:25 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-06 18:35:25 -0600
commitc76e7e969b2277a0b4e00aad4a43cfbd5862869e (patch)
treeadcd6dcd9667c21833061a56802d476ed37128b8 /src/makefile/mod.rs
parent6dbb6548990841e7aeb991b76a58e14d237e79d0 (diff)
downloadmakers-c76e7e969b2277a0b4e00aad4a43cfbd5862869e.tar.gz
makers-c76e7e969b2277a0b4e00aad4a43cfbd5862869e.zip
don't do exports on POSIX
Diffstat (limited to 'src/makefile/mod.rs')
-rw-r--r--src/makefile/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs
index cdf9d0b..ac6090e 100644
--- a/src/makefile/mod.rs
+++ b/src/makefile/mod.rs
@@ -110,7 +110,11 @@ impl<'a> Makefile<'a> {
pub fn extend(&mut self, new: FinishedMakefileReader) -> Result<()> {
self.inference_rules.extend(new.inference_rules);
- self.macros.extend(new.macros, new.macro_exports);
+ self.macros.extend(
+ new.macros,
+ #[cfg(feature = "full")]
+ new.macro_exports,
+ );
self.targets.borrow_mut().extend(
new.targets
.into_iter()