You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current documentation for the debuginfo options looks like this:
# Whether or not debuginfo is emitted
#debuginfo = false
# Whether or not line number debug information is emitted
#debuginfo-lines = false
# Whether or not to only build debuginfo for the standard library if enabled.
# If enabled, this will not compile the compiler with debuginfo, just the
# standard library.
#debuginfo-only-std = false
# Enable debuginfo for the extended tools: cargo, rls, rustfmt
# Adding debuginfo makes them several times larger.
#debuginfo-tools = false
Now I am left wondering:
If I want to have debuginfo for std and nothing else, I thought I had to just change debuginfo-only-std but that did not have any effect. So it seems I first have to enable debuginfo but then restrict it using only-std? That's surprising, and not documented.
If I set debuginfo, debuginfo-only-stdanddebuginfo-tools, which things get debuginfo?
If I set debuginfo = false and debuginfo-tools = true, do the tools get debuginfo?
The text was updated successfully, but these errors were encountered:
rustbuild: Simplify debuginfo configuration
This is supposed to fix#52179
This PR introduces one option `debuginfo-level` replacing `debuginfo` and `debuginfo-lines` and corresponding to the `rustc` flag `-C debuginfo=N`.
`debuginfo-level` serves as a default for all Rust code built during bootstrap, but it can be overridden for specific subsets of code using finer-grained options `debuginfo-level-{rustc,std,tools,tests}` replacing `debuginfo-only-std`, `debuginfo-tools` and `debuginfo-tests`.
The current documentation for the debuginfo options looks like this:
Now I am left wondering:
std
and nothing else, I thought I had to just changedebuginfo-only-std
but that did not have any effect. So it seems I first have to enabledebuginfo
but then restrict it usingonly-std
? That's surprising, and not documented.debuginfo
,debuginfo-only-std
anddebuginfo-tools
, which things get debuginfo?debuginfo = false
anddebuginfo-tools = true
, do the tools get debuginfo?The text was updated successfully, but these errors were encountered: