Commit f31e364
fix(simulator): stub host serial WASM imports for native builds
The host_drv bridge added in the previous commit calls four WASM
imports (simuAuxSerialStart/Stop/SetBaudrate/SendBuffer). On WASM
targets WASM_IMPORT resolves them via import_name attributes, but on
native builds (gtests-radio, SDL simu) the macro is a no-op, leaving
the declarations as plain externs with no definitions and breaking
link of every target with AUX_SERIAL enabled.
Provide no-op stubs for the four functions in simulib.cpp, guarded by
!__wasm__, so native builds link cleanly. The WASM simulator path is
untouched and Companion continues to resolve the symbols through WAMR.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ab03354 commit f31e364
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
406 | 419 | | |
407 | 420 | | |
408 | 421 | | |
| |||
0 commit comments