File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ module Config : sig
9292 val path : t -> string
9393 val of_string : string -> t
9494 val of_flags : string list -> t
95-
9695 val to_flags : jsoo_version :Version .t option -> t -> string list
9796end = struct
9897 type effects_backend =
@@ -217,15 +216,15 @@ end = struct
217216 through the Javascript Promise API. *)
218217 None
219218 | Some Cps ->
220- let v6_or_higher =
221- match jsoo_version with
222- | Some v ->
223- (match Version. compare v (6 , 0 ) with
224- | Gt | Eq -> true
225- | Lt -> false )
226- | None -> false
227- in
228- if v6_or_higher then Some " --effects=cps" else Some " --enable=effects"
219+ let v6_or_higher =
220+ match jsoo_version with
221+ | Some v ->
222+ (match Version. compare v (6 , 0 ) with
223+ | Gt | Eq -> true
224+ | Lt -> false )
225+ | None -> false
226+ in
227+ if v6_or_higher then Some " --effects=cps" else Some " --enable=effects"
229228 | Some Double_translation ->
230229 (* For js_of_ocaml < 6.0, this flag does not exist and will raise an error,
231230 which is fine. *)
@@ -353,9 +352,8 @@ let js_of_ocaml_rule
353352 Action_builder. of_memo (Version. jsoo_version jsoo)
354353 in
355354 Command.Args. S
356- (List. map
357- (Config. to_flags ~jsoo_version config)
358- ~f: (fun x -> Command.Args. A x))))
355+ (List. map (Config. to_flags ~jsoo_version config) ~f: (fun x ->
356+ Command.Args. A x))))
359357 ; A " -o"
360358 ; Target target
361359 ; spec
You can’t perform that action at this time.
0 commit comments