As of WASI SDK 16, `__original_main` is no longer added, breaking this: https://github.com/bytecodealliance/wizer/blob/65e345fb2bd5b5177d4be55af747edc28035c35c/include/wizer.h#L87-L90 https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-16 I am not sure what issue #295 is referring to there.
Activity
srenatus commentedon Sep 18, 2022
WebAssembly/wasi-libc#295
Zzzode commentedon Sep 19, 2022
Replace
__origin_main()with__main_argc_argv()manually could be a workaround?guregu commentedon Oct 6, 2022
Thanks @Zzzode, adding this seems to work: