-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootstrap: actually allow set debuginfo-level to "line-tables-only" #123364
Conversation
rustbot has assigned @albertlarsan68. Use |
This PR modifies If appropriate, please update |
Can we make that the default in the compiler profile? |
Maybe? I didn't use profiles. |
I do not think changing it will make the actual compiler that much slower for regular execution, as generally debuginfo is not even mapped in at the same time as most code, nevermind actually contending for cache. |
I think we can figure out the default in #123337 as what the compiler contributors think would be best as default is up to them but this part of the change is a matter of the bootstrap code per se. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I think that we should support all levels that are supported by the compilers that are used
This PR modifies If appropriate, please update |
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (07d0d7c): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 673.234s -> 672.208s (-0.15%) |
I've tried to set in config.toml
rust.debuginfo-level = "line-tables-only"
, but ended with:Also this PR allows to set
line-directives-only
for debuginfo in config.toml too.Fixes this. Alternative is remove that Deserialize and use default one:
rust/src/bootstrap/src/core/config/config.rs
Lines 725 to 728 in 0e682e9
Should
line-directives-only
be added too?I've tried to add test to rust/src/bootstrap/src/core/config/tests.rs:
But test passes before that PR too; looks like config parse tests checks something wrong? I mean, that tests check something which isn't actual bootstrap behavior.