nuttx/tools/aarch64-unknown-nuttx-macho.json
Shoji Tokunaga 7c38d58675 tools/rust: Fix aarch64 NuttX Rust target specs
Add a custom aarch64 Mach-O Rust target for macOS sim builds and use it
instead of an Apple Darwin Rust target. This keeps Rust cfg values aligned
with NuttX while producing Mach-O objects required by the simulator link.

Also align sim host handling for aarch64 Linux by detecting `aarch64` as
`HOST_ARM64` and avoiding x86-specific `-mcmodel` and `-no-pie` options
on ARM64 hosts.

Signed-off-by: Shoji Tokunaga <toku@mac.com>
2026-05-29 10:25:10 +02:00

35 lines
907 B
JSON

{
"arch": "aarch64",
"archive-format": "darwin",
"binary-format": "mach-o",
"crt-objects-fallback": "false",
"data-layout": "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32",
"debuginfo-kind": "dwarf",
"default-uwtable": true,
"disable-redzone": true,
"emit-debug-gdb-scripts": false,
"features": "+v8a,+strict-align,+neon",
"frame-pointer": "non-leaf",
"function-sections": false,
"linker-flavor": "gnu-lld",
"lld-flavor": "darwin",
"llvm-target": "arm64-apple-macosx",
"max-atomic-width": 128,
"metadata": {
"description": "aarch64 Mach-O target for NuttX sim on macOS",
"host_tools": false,
"std": true,
"tier": 3
},
"os": "nuttx",
"panic-strategy": "abort",
"split-debuginfo": "off",
"stack-probes": {
"kind": "inline"
},
"target-family": [
"unix"
],
"target-pointer-width": 64,
"vendor": "unknown"
}