Skip to content

Commit a8b5bcd

Browse files
committed
compileopts, targets: use wasmtime run subcommand
1 parent 889c169 commit a8b5bcd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compileopts/target.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ func defaultTarget(options *Options) (*TargetSpec, error) {
452452
"--stack-first",
453453
"--no-demangle",
454454
)
455-
spec.Emulator = "wasmtime --dir={tmpDir}::/tmp {}"
455+
spec.Emulator = "wasmtime run --dir={tmpDir}::/tmp {}"
456456
spec.ExtraFiles = append(spec.ExtraFiles,
457457
"src/runtime/asm_tinygowasm.S",
458458
"src/internal/task/task_asyncify_wasm.S",

targets/wasip1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
"extra-files": [
2424
"src/runtime/asm_tinygowasm.S"
2525
],
26-
"emulator": "wasmtime --dir={tmpDir}::/tmp {}"
26+
"emulator": "wasmtime run --dir={tmpDir}::/tmp {}"
2727
}

targets/wasip2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"extra-files": [
2626
"src/runtime/asm_tinygowasm.S"
2727
],
28-
"emulator": "wasmtime --wasm component-model -Sinherit-network -Sallow-ip-name-lookup --dir={tmpDir}::/tmp {}",
28+
"emulator": "wasmtime run --wasm component-model -Sinherit-network -Sallow-ip-name-lookup --dir={tmpDir}::/tmp {}",
2929
"wit-package": "{root}/lib/wasi-cli/wit/",
3030
"wit-world": "wasi:cli/command"
3131
}

targets/wasm-unknown.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
"extra-files": [
2525
"src/runtime/asm_tinygowasm.S"
2626
],
27-
"emulator": "wasmtime --dir={tmpDir}::/tmp {}"
27+
"emulator": "wasmtime run --dir={tmpDir}::/tmp {}"
2828
}

0 commit comments

Comments
 (0)