Skip to content

Commit 4ce62d0

Browse files
committed
WIP
1 parent 231bc20 commit 4ce62d0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/dune_rules/jsoo/jsoo_rules.ml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,13 @@ let wasmoo ~dir sctx =
316316
"wasm_of_ocaml"
317317
;;
318318

319-
let jsoo_has_shapes (mode : Js_of_ocaml.Mode.t) jsoo_version =
320-
match mode, jsoo_version with
321-
| JS, Some version ->
319+
let jsoo_has_shapes jsoo_version =
320+
match jsoo_version with
321+
| Some version ->
322322
(match Version.compare version (6, 1) with
323323
| Lt -> false
324324
| Gt | Eq -> true)
325-
| Wasm, Some _version -> false
326-
| _, None -> false
325+
| None -> false
327326
;;
328327

329328
type sub_command =
@@ -628,7 +627,7 @@ let build_cm' sctx ~dir ~in_context ~mode ~src ~target ~config ~shapes ~sourcema
628627
Action_builder.of_memo @@ Version.jsoo_version jsoo
629628
in
630629
let+ shapes =
631-
match jsoo_has_shapes mode jsoo_version with
630+
match jsoo_has_shapes jsoo_version with
632631
| false -> Action_builder.return []
633632
| true -> shapes
634633
in

0 commit comments

Comments
 (0)