Skip to content

Commit

Permalink
compileopts, targets: use wasmtime run subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Oct 27, 2024
1 parent 889c169 commit a8b5bcd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compileopts/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ func defaultTarget(options *Options) (*TargetSpec, error) {
"--stack-first",
"--no-demangle",
)
spec.Emulator = "wasmtime --dir={tmpDir}::/tmp {}"
spec.Emulator = "wasmtime run --dir={tmpDir}::/tmp {}"
spec.ExtraFiles = append(spec.ExtraFiles,
"src/runtime/asm_tinygowasm.S",
"src/internal/task/task_asyncify_wasm.S",
Expand Down
2 changes: 1 addition & 1 deletion targets/wasip1.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"extra-files": [
"src/runtime/asm_tinygowasm.S"
],
"emulator": "wasmtime --dir={tmpDir}::/tmp {}"
"emulator": "wasmtime run --dir={tmpDir}::/tmp {}"
}
2 changes: 1 addition & 1 deletion targets/wasip2.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"extra-files": [
"src/runtime/asm_tinygowasm.S"
],
"emulator": "wasmtime --wasm component-model -Sinherit-network -Sallow-ip-name-lookup --dir={tmpDir}::/tmp {}",
"emulator": "wasmtime run --wasm component-model -Sinherit-network -Sallow-ip-name-lookup --dir={tmpDir}::/tmp {}",
"wit-package": "{root}/lib/wasi-cli/wit/",
"wit-world": "wasi:cli/command"
}
2 changes: 1 addition & 1 deletion targets/wasm-unknown.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"extra-files": [
"src/runtime/asm_tinygowasm.S"
],
"emulator": "wasmtime --dir={tmpDir}::/tmp {}"
"emulator": "wasmtime run --dir={tmpDir}::/tmp {}"
}

0 comments on commit a8b5bcd

Please sign in to comment.