aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorAdrian Cole <[email protected]>2022-12-22 09:40:43 +0800
committerRon Evans <[email protected]>2022-12-22 09:22:17 +0100
commita700f5858146814b4b34ba38dd44011fee364316 (patch)
treeaa3f2dcaf992c194a4221526d53c29e0325fae2f /main.go
parente71e289e8b6d0a09b14043b9842d11c57fc9bb60 (diff)
downloadtinygo-a700f5858146814b4b34ba38dd44011fee364316.tar.gz
tinygo-a700f5858146814b4b34ba38dd44011fee364316.zip
wasi: makes wasmtime "run" explicit
wasmtime by default will assume the subcommand is "run" vs one of its others, but being explicit helps clarify the actual command invoked. For example, we pass similar looking args to wasmtime and also wasi. Signed-off-by: Adrian Cole <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index d820cb1ff..9df30ef69 100644
--- a/main.go
+++ b/main.go
@@ -285,9 +285,9 @@ func Test(pkgName string, stdout, stderr io.Writer, options *compileopts.Options
// relative directory up to the module root, even if the test never
// reads any files.
//
- // Ex. --dir=.. --dir=../.. --dir=../../..
+ // Ex. run --dir=.. --dir=../.. --dir=../../..
dirs := dirsToModuleRoot(result.MainDir, result.ModuleRoot)
- var args []string
+ args := []string{"run"}
for _, d := range dirs[1:] {
args = append(args, "--dir="+d)
}