Skip to content

Commit 1d207bb

Browse files
committed
bootstrap: disable split dwarf by default
Signed-off-by: David Wood <[email protected]>
1 parent 7593c50 commit 1d207bb

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

config.toml.example

+2-7
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,7 @@ changelog-seen = 2
477477
# Valid values are the same as those accepted by `-C split-debuginfo`
478478
# (`off`/`unpacked`/`packed`).
479479
#
480-
# On Linux, packed split debuginfo is used by default, which splits debuginfo
481-
# into a separate `rustc.dwp` file. Split DWARF on Linux results in lower
482-
# linking times (there's less debuginfo for the linker to process),
483-
# `split-debuginfo` is enabled on default for Linux. Unpacked debuginfo could
484-
# technically work too, but the cost of running the DWARF packager is marginal
485-
# and results in debuginfo being in a single file.
480+
# On Linux, split debuginfo is disabled by default.
486481
#
487482
# On Apple platforms, unpacked split debuginfo is used by default. Unpacked
488483
# debuginfo does not run `dsymutil`, which packages debuginfo from disparate
@@ -494,7 +489,7 @@ changelog-seen = 2
494489
#
495490
# On Windows platforms, packed debuginfo is the only supported option,
496491
# producing a `.pdb` file.
497-
#split-debuginfo = if linux { packed } else if windows { packed } else if apple { unpacked }
492+
#split-debuginfo = if linux { off } else if windows { packed } else if apple { unpacked }
498493

499494
# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
500495
#backtrace = true

src/bootstrap/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl SplitDebuginfo {
256256
} else if target.contains("windows") {
257257
SplitDebuginfo::Packed
258258
} else {
259-
SplitDebuginfo::Unpacked
259+
SplitDebuginfo::Off
260260
}
261261
}
262262
}

0 commit comments

Comments
 (0)