-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/nuttx spectest option and symbols #1687
Fix/nuttx spectest option and symbols #1687
Conversation
NuttX doesn't have SO_REUSEPORT.
Register some symbols and enable the WASM_ENABLE_SPEC_TEST for nuttx
…ion_for_nuttx' into local_main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
core/iwasm/aot/aot_reloc.h
Outdated
REG_SYM(sqrt), \ | ||
REG_SYM(sqrtf), \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sqrt/sqrtf might be a macro but not function, adding them here may cause compile error, see Windows CI report:
https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/3406870901
Suggest to register them like aot_memset/memmove:
Declare and implement aot_sqrt and aot_sqrtf in aot_runtime.h and aot_runtime.c, just after the code of aot_memset and aot_memmove:
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/core/iwasm/aot/aot_runtime.h#L448-L452
And here:
{ "sqrt", (void*)aot_sqrt },
{ "sqrtf", (void*)aot_sqrtf },
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. then how can we know which APIs may not function but macro? if in future we encounter similar problems again
…indows platform sqrt and sqrtf cannot be a const value to init struture instance on windows platform
…nce#1687) Enable spec test option on Nuttx platform. Register sqrt/sqrtf in aot global symbol map and _fixdfdi/__floatundidf in xtensa symbol map.
Enable spec test option on Nuttx platform. Register sqrt/sqrtf in aot global symbol map and _fixdfdi/__floatundidf in xtensa symbol map.
…nce#1687) Enable spec test option on Nuttx platform. Register sqrt/sqrtf in aot global symbol map and _fixdfdi/__floatundidf in xtensa symbol map.
Enable spec test option on nuttx platform
Register more symbols in sym_map