Skip to content

Commit

Permalink
misc/wasm: add wasip1/wasm exec script
Browse files Browse the repository at this point in the history
This script uses Wazero, the open source, zero dependencies
pure Go Wasm and WASI runtime. This is the runtime that allows
the greatest number of standard library tests to pass.

For golang#58141

Co-authored-by: Richard Musiol <[email protected]>
Co-authored-by: Achille Roussel <[email protected]>
Co-authored-by: Julien Fabre <[email protected]>
Co-authored-by: Evan Phoenix <[email protected]>
Change-Id: I789465ae4daf2b380f3c05a9365b8d449c6af56c
Reviewed-on: https://go-review.googlesource.com/c/go/+/479620
Reviewed-by: Ian Lance Taylor <[email protected]>
Run-TryBot: Johan Brandhorst-Satzkorn <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
  • Loading branch information
5 people committed Apr 6, 2023
1 parent 57b4df2 commit e61ba8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions misc/wasm/go_wasip1_wasm_exec
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Copyright 2023 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

exec wazero run -mount /:/ -env-inherit -cachedir "${TMPDIR}"/wazero $1 "${@:2}"

0 comments on commit e61ba8e

Please sign in to comment.