File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ let wasm_file file =
48
48
49
49
let common_args file argv = environment_args () @ (wasm_file file :: List. tl argv)
50
50
51
+ let shell_cmd cmd argv =
52
+ let script = List. hd argv in
53
+ Unix. chdir (Filename. dirname script);
54
+ cmd, Filename. basename script :: " --" :: List. tl argv
55
+
51
56
let exe, args =
52
57
match Array. to_list Sys. argv with
53
58
| exe :: argv ->
@@ -59,6 +64,7 @@ let exe, args =
59
64
| "wizard-fast" -> " wizeng.x86-64-linux" , wizard_args @ common_args file argv
60
65
| "wasmtime" -> " wasmtime" , wasmtime_args @ common_args file argv
61
66
| "wasmedge" -> " wasmedge" , wasmedge_args @ common_args file argv
67
+ | ("jsc" | "d8" | "sm" ) as cmd -> shell_cmd cmd argv
62
68
| _ -> " node" , extra_args_for_wasoo @ argv)
63
69
| _ -> " node" , extra_args_for_jsoo @ argv
64
70
in
You can’t perform that action at this time.
0 commit comments