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

Add WASI wasip1 support #1388

Merged
merged 2 commits into from
Jun 6, 2023
Merged

Conversation

flavio
Copy link
Contributor

@flavio flavio commented May 31, 2023

Fix building when the new wasip1 port is being used.
This is a new target that will be introduced by go 1.21.

For more details golang/go#58141

Fix building when the new `wasip1` port is being used.
This is a new target that will be introduced by go 1.21.

For more details golang/go#58141

Signed-off-by: Flavio Castelli <[email protected]>
Enable building using the tinygo compiler, together with
the `wasi` target.

This combination requires different handling compared to go >= 1.21
and the `wasip1` target. That's because Tinygo compiles using the
GOOS set to `linux` and the `GOARCH` set to `wasi`.

Signed-off-by: Flavio Castelli <[email protected]>
@flavio
Copy link
Contributor Author

flavio commented Jun 6, 2023

I've updated my PR to include tinygo + wasi support

You can see a demo here: https://gist.github.com/flavio/f24fc3f349c09ac134e2e130109488e9

@sirupsen sirupsen merged commit dd1b4c2 into sirupsen:master Jun 6, 2023
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

Successfully merging this pull request may close these issues.

2 participants