From fca10b517b448b4023ad8c3225e59dcefd4004e4 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 10 Nov 2024 21:20:34 -0700 Subject: overhaul eval architecture --- src/makefile/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/makefile/mod.rs') diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index 62cc416..c6a8c0a 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -16,10 +16,12 @@ use target::{DynamicTargetSet, Target}; use token::TokenString; use crate::args::Args; +use crate::makefile::functions::NO_EVAL; mod command_line; #[cfg(feature = "full")] mod conditional; +mod eval_context; #[cfg(feature = "full")] mod functions; mod inference_rules; @@ -410,7 +412,9 @@ impl<'a> Makefile<'a> { Ok(macro_pieces.join(" ")) }; - self.macros.with_lookup(&lookup_internal).expand(text) + self.macros + .with_lookup(&lookup_internal) + .expand(text, NO_EVAL) } } -- cgit v1.2.3