wizer
wizer copied to clipboard
__original_main no longer in WASI
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.
https://github.com/WebAssembly/wasi-libc/pull/295
Replace __origin_main()
with __main_argc_argv()
manually could be a workaround?
Thanks @Zzzode, adding this seems to work:
#ifndef __original_main
#define __original_main __main_argc_argv
#endif