Skip to content

Commit 6d865f8

Browse files
committed
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.
1 parent 61469b6 commit 6d865f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/builder.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,8 @@ impl<'a> Builder<'a> {
14061406
// FIXME(davidtwco): #[cfg(not(bootstrap))] - #95612 needs to be in the bootstrap compiler
14071407
// for this conditional to be removed.
14081408
if !target.contains("windows") || compiler.stage >= 1 {
1409-
if target.contains("linux") || target.contains("windows") {
1409+
if target.contains("linux") || target.contains("windows") || target.contains("openbsd")
1410+
{
14101411
rustflags.arg("-Zunstable-options");
14111412
}
14121413
match self.config.rust_split_debuginfo {

0 commit comments

Comments
 (0)