diff options
author | Melody Horn <melody@boringcactus.com> | 2024-11-10 21:28:27 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-11-10 21:28:27 -0700 |
commit | 07b4b35c44d488fea2916e7d985f60f923ed0e4c (patch) | |
tree | 6bc7c516198d35b6dc9bcb2d53083b31a78d4abe /src/makefile/mod.rs | |
parent | fca10b517b448b4023ad8c3225e59dcefd4004e4 (diff) | |
download | makers-07b4b35c44d488fea2916e7d985f60f923ed0e4c.tar.gz makers-07b4b35c44d488fea2916e7d985f60f923ed0e4c.zip |
fix that with no default features
Diffstat (limited to 'src/makefile/mod.rs')
-rw-r--r-- | src/makefile/mod.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index c6a8c0a..d1e9729 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -16,11 +16,13 @@ use target::{DynamicTargetSet, Target}; use token::TokenString; use crate::args::Args; +#[cfg(feature = "full")] use crate::makefile::functions::NO_EVAL; mod command_line; #[cfg(feature = "full")] mod conditional; +#[cfg(feature = "full")] mod eval_context; #[cfg(feature = "full")] mod functions; @@ -412,9 +414,11 @@ impl<'a> Makefile<'a> { Ok(macro_pieces.join(" ")) }; - self.macros - .with_lookup(&lookup_internal) - .expand(text, NO_EVAL) + self.macros.with_lookup(&lookup_internal).expand( + text, + #[cfg(feature = "full")] + NO_EVAL, + ) } } |