]> Cypherpunks repositories - gostls13.git/commit
misc/wasm: support new wasmtime CLI
authorJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Fri, 10 Nov 2023 06:20:27 +0000 (22:20 -0800)
committerJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Sun, 19 Nov 2023 21:11:54 +0000 (21:11 +0000)
commit06145fe03c61c3d9c0cfd87ce710c197aaa9eafd
tree0b462d6c052d82bdaef9d0e7e627c983dbfd25d0
parentada5c2edb4c2d3db988805b822e58020e6cd5f49
misc/wasm: support new wasmtime CLI

Wasmtime 14.0.0 introduced new CLI flags and removed the existing
flags, in particular the --max-wasm-stack flag we were using to avoid
errors in some tests.

This introduces a regular expression based switch that uses the old
flags for wasmtime versions < 14 and the new flags otherwise.

Fixes #63718

Change-Id: I44673e7d9f8729065757abdbf8c41e8a61897d6a
Reviewed-on: https://go-review.googlesource.com/c/go/+/541219
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
misc/wasm/go_wasip1_wasm_exec