about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-06-30 16:15:58 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-06-30 16:32:00 +1000
commitc3c995a275188c3787ad1d7384c321ed8d76f620 (patch)
tree83357f26bc28ae7fcb4367281323d49a3293a95e /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parented2d759783dc9de134bbb3f01085b1e6dbf539f3 (diff)
downloadrust-c3c995a275188c3787ad1d7384c321ed8d76f620.tar.gz
rust-c3c995a275188c3787ad1d7384c321ed8d76f620.zip
Handle build scripts better in `-Zmacro-stats` output.
Currently all build scripts are listed as `build_script_build` in the
stats header. This commit uses `CARGO_PKG_NAME` to improve that.

I tried it on Bevy, it works well, giving output like this on the build
script:
```
MACRO EXPANSION STATS: serde build script
```
and this on the crate itself:
```
MACRO EXPANSION STATS: serde
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions