diff options
| author | Sébastien Marie <semarie@online.fr> | 2022-05-02 04:55:04 +0000 |
|---|---|---|
| committer | Sébastien Marie <semarie@online.fr> | 2022-05-02 04:55:04 +0000 |
| commit | 6d865f80f88fe7d8ed37bdfed4ff93ba9ce1a908 (patch) | |
| tree | ee75148d143ac6ecf3fff05d5e8f1ba64b1c883f /src/bootstrap | |
| parent | 61469b682c2b0bf9cebc4622f1859e2bb3b7ebca (diff) | |
| download | rust-6d865f80f88fe7d8ed37bdfed4ff93ba9ce1a908.tar.gz rust-6d865f80f88fe7d8ed37bdfed4ff93ba9ce1a908.zip | |
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.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/builder.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index dd45bd3a213..c09784f8443 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1406,7 +1406,8 @@ 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") { + if target.contains("linux") || target.contains("windows") || target.contains("openbsd") + { rustflags.arg("-Zunstable-options"); } match self.config.rust_split_debuginfo { |
