openbsd: unbreak build on native platform
after #95612, only linux and windows target are build with -Zunstable-options, but others platforms might use -Csplit-debuginfo add "openbsd" target in the list of platforms using it.
This commit is contained in:
parent
61469b682c
commit
6d865f80f8
1 changed files with 2 additions and 1 deletions
|
@ -1406,7 +1406,8 @@ impl<'a> Builder<'a> {
|
||||||
// FIXME(davidtwco): #[cfg(not(bootstrap))] - #95612 needs to be in the bootstrap compiler
|
// FIXME(davidtwco): #[cfg(not(bootstrap))] - #95612 needs to be in the bootstrap compiler
|
||||||
// for this conditional to be removed.
|
// for this conditional to be removed.
|
||||||
if !target.contains("windows") || compiler.stage >= 1 {
|
if !target.contains("windows") || compiler.stage >= 1 {
|
||||||
if target.contains("linux") || target.contains("windows") {
|
if target.contains("linux") || target.contains("windows") || target.contains("openbsd")
|
||||||
|
{
|
||||||
rustflags.arg("-Zunstable-options");
|
rustflags.arg("-Zunstable-options");
|
||||||
}
|
}
|
||||||
match self.config.rust_split_debuginfo {
|
match self.config.rust_split_debuginfo {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue