Skip to content

Commit 80087b9

Browse files
committed
bootstrap: bsd platform flags for split debuginfo
Bootstrap currently provides `-Zunstable-options` for OpenBSD when using split debuginfo - this commit provides it for all BSD targets. Signed-off-by: David Wood <david.wood@huawei.com>
1 parent 74cea9f commit 80087b9

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
@@ -1405,8 +1405,12 @@ impl<'a> Builder<'a> {
14051405
// FIXME(davidtwco): #[cfg(not(bootstrap))] - #95612 needs to be in the bootstrap compiler
14061406
// for this conditional to be removed.
14071407
if !target.contains("windows") || compiler.stage >= 1 {
1408-
if target.contains("linux") || target.contains("windows") || target.contains("openbsd")
1409-
{
1408+
let needs_unstable_opts = target.contains("linux")
1409+
|| target.contains("windows")
1410+
|| target.contains("bsd")
1411+
|| target.contains("dragonfly");
1412+
1413+
if needs_unstable_opts {
14101414
rustflags.arg("-Zunstable-options");
14111415
}
14121416
match self.config.rust_split_debuginfo {

0 commit comments

Comments
 (0)