use lang 2.0 and format dune files (#440)

This commit is contained in:
Etienne Millon 2023-06-23 11:37:09 +02:00 committed by GitHub
parent fc32fa37a1
commit bfabaacf2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,5 @@
(lang dune 1.11)
(lang dune 2.0)
(formatting (enabled_for dune))
(name utop)
(generate_opam_files)

View File

@ -1,4 +1,5 @@
(executable
(name myutop)
(modes byte)
(link_flags -linkall)
(libraries utop))

View File

@ -1,4 +1,5 @@
(executable
(name test_program)
(modes byte)
(link_flags -linkall)
(libraries utop))

View File

@ -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}))))

View File

@ -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"