You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file open calls fail because WASI sets up preopened directory mounts as part of the C runtime library load during main, and we bypass that.
According to WebAssembly/wasi-sdk#110, we should be able to pass -mexec-model=reactor to the C compiler (somewhere), though I'm not sure how this will interact if the underlying SDK compiles a main entry point.
The text was updated successfully, but these errors were encountered:
Huh, apparently we can explicitly call __wasm_call_ctors from ensure_preinitialized and it works. YES I AM SLIGHTLY TERRIFIED BY THIS. Would be good to understand whether and how we can implement a more tool-supported approach.
The file open calls fail because WASI sets up preopened directory mounts as part of the C runtime library load during
main
, and we bypass that.According to WebAssembly/wasi-sdk#110, we should be able to pass
-mexec-model=reactor
to the C compiler (somewhere), though I'm not sure how this will interact if the underlying SDK compiles amain
entry point.The text was updated successfully, but these errors were encountered: