diff --git a/dune-project b/dune-project index 8d0d233..5e0c918 100644 --- a/dune-project +++ b/dune-project @@ -1,4 +1,5 @@ -(lang dune 1.11) +(lang dune 2.0) +(formatting (enabled_for dune)) (name utop) (generate_opam_files) diff --git a/examples/custom-utop/dune b/examples/custom-utop/dune index e20eac7..44e1daa 100644 --- a/examples/custom-utop/dune +++ b/examples/custom-utop/dune @@ -1,4 +1,5 @@ (executable (name myutop) + (modes byte) (link_flags -linkall) (libraries utop)) diff --git a/examples/interact/dune b/examples/interact/dune index 07cc6b2..83d5173 100644 --- a/examples/interact/dune +++ b/examples/interact/dune @@ -1,4 +1,5 @@ (executable (name test_program) + (modes byte) (link_flags -linkall) (libraries utop)) diff --git a/src/lib/dune b/src/lib/dune index b197180..4728b96 100644 --- a/src/lib/dune +++ b/src/lib/dune @@ -3,7 +3,8 @@ (public_name utop) (wrapped false) (modes byte) - (libraries compiler-libs.toplevel findlib.top lambda-term logs.lwt threads zed) + (libraries compiler-libs.toplevel findlib.top lambda-term logs.lwt threads + zed) (preprocess (action (run %{bin:cppo} -V OCAML:%{ocaml_version} %{input-file})))) diff --git a/utop.opam b/utop.opam index 7e1e5c7..5c932c1 100644 --- a/utop.opam +++ b/utop.opam @@ -10,7 +10,7 @@ homepage: "https://github.com/ocaml-community/utop" doc: "https://ocaml-community.github.io/utop/" bug-reports: "https://github.com/ocaml-community/utop/issues" depends: [ - "dune" {>= "1.11"} + "dune" {>= "2.0"} "ocaml" {>= "4.08.0"} "base-unix" "base-threads"