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/input.rs | |
parent | 6dbb6548990841e7aeb991b76a58e14d237e79d0 (diff) | |
download | makers-c76e7e969b2277a0b4e00aad4a43cfbd5862869e.tar.gz makers-c76e7e969b2277a0b4e00aad4a43cfbd5862869e.zip |
don't do exports on POSIX
Diffstat (limited to 'src/makefile/input.rs')
-rw-r--r-- | src/makefile/input.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/makefile/input.rs b/src/makefile/input.rs index 1757222..912b119 100644 --- a/src/makefile/input.rs +++ b/src/makefile/input.rs @@ -703,6 +703,7 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> { FinishedMakefileReader { inference_rules: self.inference_rules, macros: self.macros.data, + #[cfg(feature = "full")] macro_exports: self.macros.exported, targets: self.targets, first_non_special_target: self.first_non_special_target, @@ -712,7 +713,11 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> { fn extend(&mut self, new: FinishedMakefileReader) { 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.extend(new.targets); if self.first_non_special_target.is_none() { self.first_non_special_target = new.first_non_special_target; @@ -724,6 +729,7 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> { pub struct FinishedMakefileReader { pub inference_rules: Vec<InferenceRule>, pub macros: HashMap<String, Macro>, + #[cfg(feature = "full")] pub macro_exports: ExportConfig, pub targets: HashMap<String, Target>, pub first_non_special_target: Option<String>, |