This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/bootstrap/src/core/config Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 517517# overflow-checks-std = rust.overflow-checks (boolean)
518518
519519# 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+ #
525522# Can be overridden for specific subsets of Rust code (rustc, std or tools).
526523# Debuginfo for tests run with compiletest is not controlled by this option
527524# 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 {
5555pub enum DebuginfoLevel {
5656 #[ default]
5757 None ,
58+ LineDirectivesOnly ,
5859 LineTablesOnly ,
5960 Limited ,
6061 Full ,
@@ -72,6 +73,9 @@ impl<'de> Deserialize<'de> for DebuginfoLevel {
7273 Ok ( match Deserialize :: deserialize ( deserializer) ? {
7374 StringOrInt :: String ( s) if s == "none" => DebuginfoLevel :: None ,
7475 StringOrInt :: Int ( 0 ) => DebuginfoLevel :: None ,
76+ StringOrInt :: String ( s) if s == "line-directives-only" => {
77+ DebuginfoLevel :: LineDirectivesOnly
78+ }
7579 StringOrInt :: String ( s) if s == "line-tables-only" => DebuginfoLevel :: LineTablesOnly ,
7680 StringOrInt :: String ( s) if s == "limited" => DebuginfoLevel :: Limited ,
7781 StringOrInt :: Int ( 1 ) => DebuginfoLevel :: Limited ,
@@ -98,6 +102,7 @@ impl Display for DebuginfoLevel {
98102 use DebuginfoLevel :: * ;
99103 f. write_str ( match self {
100104 None => "0" ,
105+ LineDirectivesOnly => "line-directives-only" ,
101106 LineTablesOnly => "line-tables-only" ,
102107 Limited => "1" ,
103108 Full => "2" ,
You can’t perform that action at this time.
0 commit comments