From 9fca734ad344aafc8744e11ce7191bdd6d7ca817 Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Tue, 24 Oct 2023 13:21:34 -0700 Subject: [PATCH] main: do not append '--' argument to demarcate wasmtime args from command args See: https://github.com/bytecodealliance/wasmtime/pull/6946 --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 08420cebc9..2e16f49baf 100644 --- a/main.go +++ b/main.go @@ -825,10 +825,9 @@ func buildAndRun(pkgName string, config *compileopts.Config, stdout io.Writer, c emuArgs = append(emuArgs, "--env", v) } if len(cmdArgs) != 0 { - // Mark end of wasmtime arguments and start of program ones: -- - // This should not be necessary as of Wasmtime v14: + // Use of '--' argument no longer necessary as of Wasmtime v14: // https://github.com/bytecodealliance/wasmtime/pull/6946 - args = append(args, "--") + // args = append(args, "--") args = append(args, cmdArgs...) }