Skip to content

Commit f651c1e

Browse files
Rollup merge of #163097 - brad0:librustc_llvm_sparc64, r=folkertdev
OpenBSD/sparc64 has switched from GCC to Clang
2 parents 164929d + c176c10 commit f651c1e

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

‎compiler/rustc_llvm/build.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,8 @@ fn main() {
484484
let llvm_static_stdcpp = tracked_env_var_os("LLVM_STATIC_STDCPP");
485485
let llvm_use_libcxx = tracked_env_var_os("LLVM_USE_LIBCXX");
486486

487-
let stdcppname = if target.contains("openbsd") {
488-
if target.contains("sparc64") { "estdc++" } else { "c++" }
489-
} else if target.contains("darwin")
487+
let stdcppname = if target.contains("openbsd")
488+
|| target.contains("darwin")
490489
|| target.contains("freebsd")
491490
|| target.contains("windows-gnullvm")
492491
|| target.contains("aix")

‎library/unwind/src/lib.rs‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,7 @@ unsafe extern "C" {}
204204
#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
205205
unsafe extern "C" {}
206206

207-
#[cfg(all(target_os = "openbsd", target_arch = "sparc64"))]
208-
#[link(name = "gcc")]
209-
unsafe extern "C" {}
210-
211-
#[cfg(all(target_os = "openbsd", not(target_arch = "sparc64")))]
207+
#[cfg(target_os = "openbsd")]
212208
#[link(name = "c++abi")]
213209
unsafe extern "C" {}
214210

‎src/doc/rustc/src/platform-support/openbsd.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The target names follow this format: `$ARCH-unknown-openbsd`, where `$ARCH` spec
1414
| `i686-unknown-openbsd` | libc++ | [Standard PC and clones based on the Intel i386 architecture and compatible processors](https://www.openbsd.org/i386.html) |
1515
| `powerpc64-unknown-openbsd` | libc++ | [IBM POWER-based PowerNV systems](https://www.openbsd.org/powerpc64.html) |
1616
| `riscv64gc-unknown-openbsd` | libc++ | [64-bit RISC-V systems](https://www.openbsd.org/riscv64.html) |
17-
| `sparc64-unknown-openbsd` | estdc++ | [Sun UltraSPARC and Fujitsu SPARC64 systems](https://www.openbsd.org/sparc64.html) |
17+
| `sparc64-unknown-openbsd` | libc++ | [Sun UltraSPARC and Fujitsu SPARC64 systems](https://www.openbsd.org/sparc64.html) |
1818
| `x86_64-unknown-openbsd` | libc++ | [AMD64-based systems](https://www.openbsd.org/amd64.html) |
1919

2020
Note that all OS versions are *major* even if using X.Y notation (`6.8` and `6.9` are different major versions) and could be binary incompatibles (with breaking changes).

0 commit comments

Comments
 (0)