bootstrap: actually allow set debuginfo-level to "line-tables-only"#123364
bootstrap: actually allow set debuginfo-level to "line-tables-only"#123364bors merged 2 commits intorust-lang:masterfrom
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. |
albertlarsan68
left a comment
There was a problem hiding this comment.
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 |
|
@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-onlyfor 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-onlybe 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.