CcGenerateDwp should take into account that some dwo files are not referenced by the binary file #19148
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Rules-CPP
Issues for C++ rules
type: feature request
Description of the feature request:
CcGenerateDwp takes all
.dwo
files as inputs and executed thedwp
tool to collect all of them into the finaldwp
file.Meanwhile, not all of the
.o
files are linked in the final binary.That means the
dwp
file contains a lot of unused information and becomes unnecessarily big.CcGenerateDwp should take that into account and remove unneeded
.dwo
files in the outputdwp
file.Which category does this issue belong to?
No response
What underlying problem are you trying to solve with this feature?
Dwp files are too big, and contain so much unneeded info.
Which operating system are you running Bazel on?
Ubuntu
What is the output of
bazel info release
?release 6.1.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: