Skip to content

Commit a67cb7e

Browse files
committed
Include line numbers in debuginfo by default for developers
1 parent 4db04bd commit a67cb7e

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/bootstrap/defaults/config.codegen.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ incremental = true
2121
backtrace-on-ice = true
2222
# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
2323
lto = "off"
24+
# Include line numbers in backtraces.
25+
debuginfo-level-rustc = 1

src/bootstrap/defaults/config.compiler.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ incremental = true
1414
backtrace-on-ice = true
1515
# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
1616
lto = "off"
17+
# Include line numbers in backtraces.
18+
debuginfo-level-rustc = 1
1719

1820
[llvm]
1921
# Will download LLVM from CI if available on your platform.

src/bootstrap/defaults/config.library.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ bench-stage = 0
1010
incremental = true
1111
# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
1212
lto = "off"
13+
# Include line numbers in backtraces.
14+
debuginfo-level-std = 1
1315

1416
[llvm]
1517
# Will download LLVM from CI if available on your platform.

src/bootstrap/defaults/config.tools.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ incremental = true
1010
# Download rustc from CI instead of building it from source.
1111
# This cuts compile times by almost 60x, but means you can't modify the compiler.
1212
download-rustc = "if-unchanged"
13+
# Include line numbers in backtraces.
14+
debuginfo-level-tools = 1
1315

1416
[build]
1517
# Document with the in-tree rustdoc by default, since `download-rustc` makes it quick to compile.

0 commit comments

Comments
 (0)