Skip to content

Commit 0f1c067

Browse files
Rollup merge of rust-lang#96758 - davidtwco:split-debuginfo-bootstrap-bsd, r=Mark-Simulacrum
bootstrap: bsd platform flags for split debuginfo Addresses rust-lang#96597 (comment). Bootstrap currently provides `-Zunstable-options` for OpenBSD when using split debuginfo - this commit provides it for all BSD targets. We should probably work out a better way of handling the stability of the split debuginfo flag - all options for the flag are unstable but one of them is the default for each platform already. cc `@m-ou-se` r? `@Mark-Simulacrum`
2 parents 825dc80 + 80087b9 commit 0f1c067

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/bootstrap/builder.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,12 @@ impl<'a> Builder<'a> {
14171417
// FIXME(davidtwco): #[cfg(not(bootstrap))] - #95612 needs to be in the bootstrap compiler
14181418
// for this conditional to be removed.
14191419
if !target.contains("windows") || compiler.stage >= 1 {
1420-
if target.contains("linux") || target.contains("windows") || target.contains("openbsd")
1421-
{
1420+
let needs_unstable_opts = target.contains("linux")
1421+
|| target.contains("windows")
1422+
|| target.contains("bsd")
1423+
|| target.contains("dragonfly");
1424+
1425+
if needs_unstable_opts {
14221426
rustflags.arg("-Zunstable-options");
14231427
}
14241428
match self.config.rust_split_debuginfo {

0 commit comments

Comments
 (0)