From 07b4b35c44d488fea2916e7d985f60f923ed0e4c Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 10 Nov 2024 21:28:27 -0700 Subject: fix that with no default features --- src/makefile/mod.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/makefile/mod.rs') 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, + ) } } -- cgit v1.2.3