Files
nuttx/tools
Ansh Rai 522ae4cb3f tools/Zig.defs: Fix Zig builds on sim:x86_64
Building Zig applications on sim:x86_64 with Zig 0.13.0 fails because
the generated target "x86_64-freestanding-sysv" is not recognized by
Zig. Introduce a Zig-specific ABI mapping that translates "sysv" to
"gnu" without affecting other toolchains.

After correcting the target ABI, linking still fails due to unresolved
references to __zig_probe_stack. Add -fcompiler-rt so Zig includes the
required compiler runtime during linking.

Verified on sim:nsh with CONFIG_EXAMPLES_HELLO_ZIG=y:

  nsh> hello_zig
  [sim]: Hello, Zig!

Fixes #19475

Signed-off-by: Ansh Rai <anshrai331@gmail.com>
2026-07-20 09:36:56 +08:00
..
2024-09-10 23:11:11 +08:00
2025-08-28 10:04:01 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2025-04-11 09:43:22 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-12-04 22:36:45 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2026-01-24 23:31:43 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00
2024-09-10 23:11:11 +08:00