File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ let _ =
248248 " js_of_ocaml -q --target-env browser --debug mark-runtime-gen %s %s"
249249 opts
250250 (match effects with
251- | `None -> " "
251+ | `None -> " --effects=disabled "
252252 | `Cps -> " --effects=cps"
253253 | `Double_translation -> " --effects=double-translation" ))
254254 in
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ let compile_to_javascript
279279 ; (match effects with
280280 | `Double_translation -> [ " --effects=double-translation" ]
281281 | `Cps -> [ " --effects=cps" ]
282- | `Disabled -> [] )
282+ | `Disabled -> [ " --effects=disabled " ])
283283 ; (if use_js_string
284284 then [ " --enable=use-js-string" ]
285285 else [ " --disable=use-js-string" ])
Original file line number Diff line number Diff line change 44 match l, major > = 5 with
55 | [ " with-effects-double-translation" ], true -> [ " --effects" ; " double-translation" ]
66 | [ " with-effects" ], true -> [ " --effects" ; " cps" ]
7- | _ , true -> []
8- | _ , false -> []
7+ | _ -> [ " --effects" ; " disabled" ]
98 in
109 match Sys. argv |> Array. to_list |> List. tl with
1110 | "txt" :: rest -> List. iter print_endline (effects_flags rest)
You can’t perform that action at this time.
0 commit comments