about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-05-06 03:00:39 +0100
committerDavid Wood <david.wood@huawei.com>2022-05-06 03:04:04 +0100
commit80087b98ccea66b0734c514b97014399b5100255 (patch)
tree8a66f361339e43ffd32d2693e549d58fcadcee5c /src/bootstrap
parent74cea9fdb9ca77d4104df5c28124817004ead6a3 (diff)
downloadrust-80087b98ccea66b0734c514b97014399b5100255.tar.gz
rust-80087b98ccea66b0734c514b97014399b5100255.zip
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>
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/builder.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index 2224bf5f66e..e91a9991806 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -1405,8 +1405,12 @@ impl<'a> Builder<'a> {
         // FIXME(davidtwco): #[cfg(not(bootstrap))] - #95612 needs to be in the bootstrap compiler
         // for this conditional to be removed.
         if !target.contains("windows") || compiler.stage >= 1 {
-            if target.contains("linux") || target.contains("windows") || target.contains("openbsd")
-            {
+            let needs_unstable_opts = target.contains("linux")
+                || target.contains("windows")
+                || target.contains("bsd")
+                || target.contains("dragonfly");
+
+            if needs_unstable_opts {
                 rustflags.arg("-Zunstable-options");
             }
             match self.config.rust_split_debuginfo {