nuttx-apps/cmake
Shoji Tokunaga d1202bd501 examples/rust: Avoid the infinite loop on sim for hello_rust_cargo
On the sim target (Windows/macOS/Linux), hello_rust_cargo_main() ended
with an infinite `loop {}` that never returned control to NSH, so the
example could not exit and the shell prompt hung.

Introduce a Cargo `sim` feature that is enabled only when CONFIG_ARCH_SIM
is set, and use it to compile out the trailing infinite loop and return 0
instead. Other embedded targets keep the original looping behavior.

Signed-off-by: Shoji Tokunaga <toku@mac.com>
2026-06-20 10:33:46 -03:00
..
nuttx_add_luamod.cmake cmake: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
nuttx_add_rust.cmake examples/rust: Avoid the infinite loop on sim for hello_rust_cargo 2026-06-20 10:33:46 -03:00
nuttx_add_wamrmod.cmake cmake: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
nuttx_wasm_interface.cmake cmake(enhance):Enhanced full WASM library and application compilation 2025-01-23 14:26:08 +08:00