Skip to content
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

can not use wasi without the extra/wasi_core.h #15

Open
gossmer opened this issue Sep 11, 2022 · 1 comment
Open

can not use wasi without the extra/wasi_core.h #15

gossmer opened this issue Sep 11, 2022 · 1 comment

Comments

@gossmer
Copy link

gossmer commented Sep 11, 2022

adding extra/wasi_core.h from wasm3 into the Sources/CWasm3 allow for the call to m3_LinkWASI to work and wasi is then available in a wasm module.

@gossmer
Copy link
Author

gossmer commented Sep 11, 2022

You also need to add in the package defines:

    cSettings: [
        .define("APPLICATION_EXTENSION_API_ONLY", to: "YES"),
        .define("d_m3MaxDuplicateFunctionImpl", to: "10"),
        .define("__wasi__", to: "YES"),
        .define("d_m3HasWASI", to: "YES")
    ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant