diff --git a/dune-project b/dune-project index 1d96e928..1fa9a832 100644 --- a/dune-project +++ b/dune-project @@ -1,4 +1,4 @@ -(lang dune 1.11) +(lang dune 2.3) (name ocaml-migrate-parsetree) (allow_approximate_merlin) (using cinaps 1.0) diff --git a/ocaml-migrate-parsetree.opam b/ocaml-migrate-parsetree.opam index 865d8763..43624651 100644 --- a/ocaml-migrate-parsetree.opam +++ b/ocaml-migrate-parsetree.opam @@ -13,7 +13,7 @@ tags: [ "syntax" "org:ocamllabs" ] build: ["dune" "build" "-p" name "-j" jobs] run-test: ["dune" "runtest" "-p" name "-j" jobs] depends: [ - "dune" {>= "1.11"} + "dune" {>= "2.3"} "ocaml" {>= "4.02.3" & < "4.13"} "cinaps" {with-test} ] diff --git a/tools/dune b/tools/dune index 979bb710..4f6b8547 100644 --- a/tools/dune +++ b/tools/dune @@ -1,5 +1,20 @@ -(executables - (names add_special_comments pp gencopy) +(executable + (name pp) + (modules pp pp_rewrite) + (libraries compiler-libs.common compiler-libs.bytecomp) + (flags :standard -w -3)) + +(executable + (name gencopy) + (enabled_if (>= %{ocaml_version} 4.10)) + (modules gencopy) + (libraries compiler-libs.common compiler-libs.bytecomp) + (flags :standard -w -3)) + +(executable + (name add_special_comments) + (enabled_if (>= %{ocaml_version} 4.10)) + (modules add_special_comments) (libraries compiler-libs.common compiler-libs.bytecomp) (flags :standard -w -3))