File tree 2 files changed +7
-5
lines changed
src/bootstrap/src/core/config
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 517
517
# overflow-checks-std = rust.overflow-checks (boolean)
518
518
519
519
# Debuginfo level for most of Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
520
- # `0` - no debug info
521
- # `1` - line tables only - sufficient to generate backtraces that include line
522
- # information and inlined functions, set breakpoints at source code
523
- # locations, and step through execution in a debugger.
524
- # `2` - full debug info with variable and type information
520
+ # See https://doc.rust-lang.org/rustc/codegen-options/index.html#debuginfo for available options.
521
+ #
525
522
# Can be overridden for specific subsets of Rust code (rustc, std or tools).
526
523
# Debuginfo for tests run with compiletest is not controlled by this option
527
524
# and needs to be enabled separately with `debuginfo-level-tests`.
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ pub enum DryRun {
55
55
pub enum DebuginfoLevel {
56
56
#[ default]
57
57
None ,
58
+ LineDirectivesOnly ,
58
59
LineTablesOnly ,
59
60
Limited ,
60
61
Full ,
@@ -72,6 +73,9 @@ impl<'de> Deserialize<'de> for DebuginfoLevel {
72
73
Ok ( match Deserialize :: deserialize ( deserializer) ? {
73
74
StringOrInt :: String ( s) if s == "none" => DebuginfoLevel :: None ,
74
75
StringOrInt :: Int ( 0 ) => DebuginfoLevel :: None ,
76
+ StringOrInt :: String ( s) if s == "line-directives-only" => {
77
+ DebuginfoLevel :: LineDirectivesOnly
78
+ }
75
79
StringOrInt :: String ( s) if s == "line-tables-only" => DebuginfoLevel :: LineTablesOnly ,
76
80
StringOrInt :: String ( s) if s == "limited" => DebuginfoLevel :: Limited ,
77
81
StringOrInt :: Int ( 1 ) => DebuginfoLevel :: Limited ,
@@ -98,6 +102,7 @@ impl Display for DebuginfoLevel {
98
102
use DebuginfoLevel :: * ;
99
103
f. write_str ( match self {
100
104
None => "0" ,
105
+ LineDirectivesOnly => "line-directives-only" ,
101
106
LineTablesOnly => "line-tables-only" ,
102
107
Limited => "1" ,
103
108
Full => "2" ,
You can’t perform that action at this time.
0 commit comments