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 =
4848
4949let common_args file argv = environment_args () @ (wasm_file file :: List. tl argv)
5050
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+
5156let exe, args =
5257 match Array. to_list Sys. argv with
5358 | exe :: argv ->
@@ -59,6 +64,7 @@ let exe, args =
5964 | "wizard-fast" -> " wizeng.x86-64-linux" , wizard_args @ common_args file argv
6065 | "wasmtime" -> " wasmtime" , wasmtime_args @ common_args file argv
6166 | "wasmedge" -> " wasmedge" , wasmedge_args @ common_args file argv
67+ | ("jsc" | "d8" | "sm" ) as cmd -> shell_cmd cmd argv
6268 | _ -> " node" , extra_args_for_wasoo @ argv)
6369 | _ -> " node" , extra_args_for_jsoo @ argv
6470 in
You can’t perform that action at this time.
0 commit comments