-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
I tried this code:
./configure --set rust.split-debuginfo=packed
x build --stage 0 compiler
I expected to see this happen: rustc/cargo generate a large .dwp file for rustc_driver.so and a small .dwp file for rustc-main.
Instead, this happened: Both crates have duplicate .dwp files:
; ls -lh build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/*rustc*
-rwxrwxr-x 4 jyn jyn 310M Mar 18 09:47 build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/librustc_driver.so
-rw-rw-r-- 2 jyn jyn 254M Mar 18 09:47 build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/librustc_driver.so.dwp
-rwxrwxr-x 3 jyn jyn 20K Mar 18 09:47 build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/rustc-main
-rw-rw-r-- 2 jyn jyn 254M Mar 18 09:47 build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/rustc-main.dwp
Meta
beta is
Lines 19 to 22 in bb8a0ff
"compiler": { | |
"date": "2023-03-07", | |
"version": "beta" | |
}, |
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.