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 114ce88

Browse files
authoredDec 23, 2023
Unrolled build for rust-lang#112936
Rollup merge of rust-lang#112936 - Toasterson:illumos-aarch64-target, r=jackh726 Add illumos aarch64 target for rust. This adds the newly being developed illumos aarch64 target to the rust compiler. `@rmustacc` `@citrus-it` `@richlowe` As promissed before my hiatus :)
2 parents 520e30b + 074809b commit 114ce88

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
 

‎compiler/rustc_target/src/spec/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,7 @@ supported_targets! {
15911591
("sparcv9-sun-solaris", sparcv9_sun_solaris),
15921592

15931593
("x86_64-unknown-illumos", x86_64_unknown_illumos),
1594+
("aarch64-unknown-illumos", aarch64_unknown_illumos),
15941595

15951596
("x86_64-pc-windows-gnu", x86_64_pc_windows_gnu),
15961597
("i686-pc-windows-gnu", i686_pc_windows_gnu),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
use crate::spec::{base, Cc, LinkerFlavor, SanitizerSet, Target};
2+
3+
pub fn target() -> Target {
4+
let mut base = base::illumos::opts();
5+
base.add_pre_link_args(LinkerFlavor::Unix(Cc::Yes), &["-std=c99"]);
6+
base.max_atomic_width = Some(128);
7+
base.supported_sanitizers = SanitizerSet::ADDRESS | SanitizerSet::CFI;
8+
base.features = "+v8a".into();
9+
10+
Target {
11+
// LLVM does not currently have a separate illumos target,
12+
// so we still pass Solaris to it
13+
llvm_target: "aarch64-unknown-solaris2.11".into(),
14+
pointer_width: 64,
15+
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".into(),
16+
arch: "aarch64".into(),
17+
options: base,
18+
}
19+
}

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

+1
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ target | std | host | notes
230230
[`aarch64-unknown-nto-qnx710`](platform-support/nto-qnx.md) | ✓ | | ARM64 QNX Neutrino 7.1 RTOS |
231231
`aarch64-unknown-freebsd` | ✓ | ✓ | ARM64 FreeBSD
232232
[`aarch64-unknown-hermit`](platform-support/hermit.md) | ✓ | | ARM64 Hermit
233+
`aarch64-unknown-illumos` | ✓ | ✓ | ARM64 illumos
233234
`aarch64-unknown-linux-gnu_ilp32` | ✓ | ✓ | ARM64 Linux (ILP32 ABI)
234235
[`aarch64-unknown-netbsd`](platform-support/netbsd.md) | ✓ | ✓ | ARM64 NetBSD
235236
[`aarch64-unknown-openbsd`](platform-support/openbsd.md) | ✓ | ✓ | ARM64 OpenBSD

0 commit comments

Comments
 (0)
Please sign in to comment.