diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-14 18:40:57 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-14 18:40:57 -0600 |
commit | 37de70de9ac60c5d169b845420c349ecc5820a5c (patch) | |
tree | 17dd16e94e59de7deffa869e556cfd69646c2cb9 /src | |
parent | f85de4ce31390ed41405202c6e08efe652439ae5 (diff) | |
download | makers-37de70de9ac60c5d169b845420c349ecc5820a5c.tar.gz makers-37de70de9ac60c5d169b845420c349ecc5820a5c.zip |
trace macro expansion, including source
Diffstat (limited to 'src')
-rw-r--r-- | src/makefile/macro.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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")] |