aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-14 18:40:57 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-14 18:40:57 -0600
commit37de70de9ac60c5d169b845420c349ecc5820a5c (patch)
tree17dd16e94e59de7deffa869e556cfd69646c2cb9 /src/makefile
parentf85de4ce31390ed41405202c6e08efe652439ae5 (diff)
downloadmakers-37de70de9ac60c5d169b845420c349ecc5820a5c.tar.gz
makers-37de70de9ac60c5d169b845420c349ecc5820a5c.zip
trace macro expansion, including source
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile/macro.rs6
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),
+ &macro_value
+ );
result.push_str(&macro_value);
}
#[cfg(feature = "full")]