Rollup merge of #152870 - mati865:mingw-disable-packed-debuginfo-in-bootstrap, r=Mark-Simulacrum

Do not enable split debuginfo for windows-gnu

Because rustc doesn't handle split debuginfo for these targets, enabling that option causes them to be missing some of the debuginfo.
This commit is contained in:
Jonathan Brouwer
2026-03-19 13:42:23 +01:00
committed by GitHub
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -1013,9 +1013,10 @@
# its historical default, but when compiling the compiler itself, we skip it by
# default since we know it's safe to do so in that case.
#
# On Windows platforms, packed debuginfo is the only supported option,
# producing a `.pdb` file.
#split-debuginfo = if linux { off } else if windows { packed } else if apple { unpacked }
# On Windows MSVC platforms, packed debuginfo is the only supported option,
# producing a `.pdb` file. On Windows GNU rustc doesn't support splitting debuginfo,
# and enabling it causes issues.
#split-debuginfo = if linux || windows-gnu { off } else if windows-msvc { packed } else if apple { unpacked }
# Path to the `llvm-config` binary of the installation of a custom LLVM to link
# against. Note that if this is specified we don't compile LLVM at all for this
@@ -142,7 +142,7 @@ impl SplitDebuginfo {
pub fn default_for_platform(target: TargetSelection) -> Self {
if target.contains("apple") {
SplitDebuginfo::Unpacked
} else if target.is_windows() {
} else if target.is_msvc() {
SplitDebuginfo::Packed
} else {
SplitDebuginfo::Off