-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new
-Z force-full-debuginfo
flag
Apparently firefox depends on the current behavior that adds too much debuginfo, but that doesn't mean we need to force it on for rustc itself. Add a new unstable flag for turning it off.
- Loading branch information
Showing
5 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/doc/unstable-book/src/compiler-flags/force-full-debuginfo.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# `force-full-debuginfo` | ||
|
||
The tracking issue for this feature is: [#64405](https://github.com/rust-lang/rust/issues/64405). | ||
|
||
--- | ||
|
||
The option `-Z force-full-debuginfo` controls whether `-C debuginfo=1` generates full debug info for | ||
a codegen-unit. Due to an oversight, debuginfo=1 (which should only mean "line tables") generated | ||
additional debuginfo for many years. Due to backwards compatibility concerns, we are not yet | ||
changing that meaning, but instead adding this flag to allow opting-in to the new, reduced, debuginfo. | ||
|
||
Supported options for this value are: | ||
- `yes` - the default, include full debuginfo for the codegen unit | ||
- `no` - include only line info for the codegen unit | ||
|
||
The default for this option may change in the future, but it is unlikely to be stabilized. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters