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>
This commit is contained in:
parent
74cea9fdb9
commit
80087b98cc
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user