From 37de70de9ac60c5d169b845420c349ecc5820a5c Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 14 Apr 2021 18:40:57 -0600 Subject: trace macro expansion, including source --- src/makefile/macro.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/makefile') diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs index 9b52206..d77557b 100644 --- a/src/makefile/macro.rs +++ b/src/makefile/macro.rs @@ -276,6 +276,12 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> { } None => macro_value, }; + log::trace!( + "expanded {} (from {:?}) into \"{}\"", + token, + self.get(&name).map(|x| &x.source), + ¯o_value + ); result.push_str(¯o_value); } #[cfg(feature = "full")] -- cgit v1.2.3