Skip to content

__original_main no longer in WASI #58

Open

Description

@guregu

As of WASI SDK 16, __original_main is no longer added, breaking this:

wizer/include/wizer.h

Lines 87 to 90 in 65e345f

/* `main()`. This may change in the future; when it does, we will */ \
/* coordinate with the WASI-SDK toolchain to implement this entry */ \
/* point in an alternate way. */ \
__original_main(); \

https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-16
I am not sure what issue #295 is referring to there.

Activity

  1. srenatus commented on Sep 18, 2022

    @srenatus
  2. Zzzode commented on Sep 19, 2022

    @Zzzode

    Replace __origin_main() with __main_argc_argv() manually could be a workaround?

  3. guregu commented on Oct 6, 2022

    @guregu
    Author

    Thanks @Zzzode, adding this seems to work:

    #ifndef __original_main
    #define __original_main __main_argc_argv
    #endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions