feature: add buildmode=wasi-legacy to support existing base of users who expected the

older behavior for wasi modules to not return an exit code as if they were reactors.

See #4726 for some details on what this is intended to address.

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2025-02-12 17:55:12 +01:00
committed by Ron Evans
parent f4fd79f7be
commit 17bb1fec44
6 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -1501,7 +1501,7 @@ func main() {
var tags buildutil.TagsFlag
flag.Var(&tags, "tags", "a space-separated list of extra build tags")
target := flag.String("target", "", "chip/board name or JSON target specification file")
buildMode := flag.String("buildmode", "", "build mode to use (default, c-shared)")
buildMode := flag.String("buildmode", "", "build mode to use (default, c-shared, wasi-legacy)")
var stackSize uint64
flag.Func("stack-size", "goroutine stack size (if unknown at compile time)", func(s string) error {
size, err := bytesize.Parse(s)