Skip to content

Commit

Permalink
build: link dune executables for gen_curry and gen_caml_oo_curry (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Oct 25, 2023
1 parent 9ac1a1d commit c5bf086
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions jscomp/runtime/dune
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@

(rule
(target caml_oo_curry.ml)
(deps gen/caml_oo_curry_gen.ml)
(action
(with-stdout-to
%{target}
(run ocaml %{deps}))))
(run ./gen/gen_caml_oo_curry.exe))))

(rule
(target curry.ml)
(deps gen/curry_gen.ml)
(action
(with-stdout-to
%{target}
(run ocaml %{deps}))))
(run ./gen/gen_curry.exe))))
2 changes: 2 additions & 0 deletions jscomp/runtime/gen/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(executables
(names gen_caml_oo_curry gen_curry))
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ let js%d label cacheid %s =
let () =
print_endline
@@ Printf.sprintf "%s\n%s" prelude
(String.concat "\n" (list_init 8 (fun i -> generate_fun (i + 1))))
(String.concat "\n" (list_init number (fun i -> generate_fun (i + 1))))

(* local variables: *)
(* compile-command: "ocaml caml_oo_curry_gen.ml > ../jscomp/runtime/caml_oo_curry.ml" *)
Expand Down
File renamed without changes.

0 comments on commit c5bf086

Please sign in to comment.