Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 38fc918

Browse files
committedNov 22, 2024
Updates Solaris target information, adds Solaris maintainer
1 parent 0b1bf71 commit 38fc918

File tree

5 files changed

+38
-4
lines changed

5 files changed

+38
-4
lines changed
 

‎compiler/rustc_target/src/spec/targets/sparcv9_sun_solaris.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub(crate) fn target() -> Target {
1313
Target {
1414
llvm_target: "sparcv9-sun-solaris".into(),
1515
metadata: crate::spec::TargetMetadata {
16-
description: Some("SPARC Solaris 11, illumos".into()),
16+
description: Some("SPARC Solaris 11.4".into()),
1717
tier: Some(2),
1818
host_tools: Some(false),
1919
std: Some(true),

‎compiler/rustc_target/src/spec/targets/x86_64_pc_solaris.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub(crate) fn target() -> Target {
1313
Target {
1414
llvm_target: "x86_64-pc-solaris".into(),
1515
metadata: crate::spec::TargetMetadata {
16-
description: Some("64-bit Solaris 11, illumos".into()),
16+
description: Some("64-bit Solaris 11.4".into()),
1717
tier: Some(2),
1818
host_tools: Some(false),
1919
std: Some(true),

‎src/doc/rustc/src/SUMMARY.md

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
- [s390x-unknown-linux-gnu](platform-support/s390x-unknown-linux-gnu.md)
7676
- [s390x-unknown-linux-musl](platform-support/s390x-unknown-linux-musl.md)
7777
- [sparc-unknown-none-elf](./platform-support/sparc-unknown-none-elf.md)
78+
- [sparcv9-sun-solaris](platform-support/solaris.md)
7879
- [*-pc-windows-gnullvm](platform-support/pc-windows-gnullvm.md)
7980
- [\*-nto-qnx-\*](platform-support/nto-qnx.md)
8081
- [*-unikraft-linux-musl](platform-support/unikraft-linux-musl.md)
@@ -93,6 +94,7 @@
9394
- [wasm64-unknown-unknown](platform-support/wasm64-unknown-unknown.md)
9495
- [\*-win7-windows-msvc](platform-support/win7-windows-msvc.md)
9596
- [x86_64-fortanix-unknown-sgx](platform-support/x86_64-fortanix-unknown-sgx.md)
97+
- [x86_64-pc-solaris](platform-support/solaris.md)
9698
- [x86_64-unknown-linux-none.md](platform-support/x86_64-unknown-linux-none.md)
9799
- [x86_64-unknown-none](platform-support/x86_64-unknown-none.md)
98100
- [xtensa-\*-none-elf](platform-support/xtensa.md)

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ target | std | notes
180180
`riscv64gc-unknown-none-elf` | * | Bare RISC-V (RV64IMAFDC ISA)
181181
`riscv64imac-unknown-none-elf` | * | Bare RISC-V (RV64IMAC ISA)
182182
`sparc64-unknown-linux-gnu` | ✓ | SPARC Linux (kernel 4.4, glibc 2.23)
183-
`sparcv9-sun-solaris` | ✓ | SPARC Solaris 11, illumos
183+
[`sparcv9-sun-solaris`](platform-support/solaris.md) | ✓ | SPARC V9 Solaris 11.4
184184
[`thumbv6m-none-eabi`](platform-support/thumbv6m-none-eabi.md) | * | Bare Armv6-M
185185
[`thumbv7em-none-eabi`](platform-support/thumbv7em-none-eabi.md) | * | Bare Armv7E-M
186186
[`thumbv7em-none-eabihf`](platform-support/thumbv7em-none-eabi.md) | * | Bare Armv7E-M, hardfloat
@@ -201,7 +201,7 @@ target | std | notes
201201
[`x86_64-fortanix-unknown-sgx`](platform-support/x86_64-fortanix-unknown-sgx.md) | ✓ | [Fortanix ABI] for 64-bit Intel SGX
202202
[`x86_64-unknown-fuchsia`](platform-support/fuchsia.md) | ✓ | 64-bit x86 Fuchsia
203203
[`x86_64-linux-android`](platform-support/android.md) | ✓ | 64-bit x86 Android
204-
`x86_64-pc-solaris` | ✓ | 64-bit Solaris 11, illumos
204+
[`x86_64-pc-solaris`](platform-support/solaris.md) | ✓ | 64-bit x86 Solaris 11.4
205205
[`x86_64-pc-windows-gnullvm`](platform-support/pc-windows-gnullvm.md) | ✓ | 64-bit x86 MinGW (Windows 10+), LLVM ABI
206206
`x86_64-unknown-linux-gnux32` | ✓ | 64-bit Linux (x32 ABI) (kernel 4.15, glibc 2.27)
207207
[`x86_64-unknown-linux-ohos`](platform-support/openharmony.md) | ✓ | x86_64 OpenHarmony
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# sparcv9-sun-solaris
2+
# x86_64-pc-solaris
3+
4+
**Tier: 2**
5+
6+
Rust for Solaris operating system.
7+
8+
## Target maintainers
9+
10+
- Petr Sumbera `sumbera@volny.cz`, https://github.com/psumbera
11+
12+
## Requirements
13+
14+
Binary built for this target is expected to run on sparcv9 or x86_64, and Solaris 11.4.
15+
16+
## Testing
17+
18+
For testing you can download Oracle Solaris 11.4 CBE release from:
19+
20+
https://www.oracle.com/uk/solaris/solaris11/downloads/solaris-downloads.html
21+
22+
Solaris CBE release is also available for GitHub CI:
23+
24+
https://github.com/vmactions/solaris-vm
25+
26+
Latest Solaris 11.4 SRU can be tested at Compile farm project:
27+
28+
https://portal.cfarm.net/machines/list/ (cfarm215, cfarm215)
29+
30+
There are no official Rust binaries for Solaris available for Rustup yet. But you can eventually download unofficial from:
31+
32+
https://github.com/psumbera/solaris-rust

0 commit comments

Comments
 (0)
Failed to load comments.