mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
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:
@@ -1405,8 +1405,12 @@ pub fn cargo(
|
||||
// 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 {
|
||||
|
||||
Reference in New Issue
Block a user