mirror of
https://github.com/apache/nuttx.git
synced 2026-08-27 04:10:40 +00:00
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>
35 lines
907 B
JSON
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"
|
|
}
|