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) (name utop)
(generate_opam_files) (generate_opam_files)

View File

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

View File

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

View File

@ -3,7 +3,8 @@
(public_name utop) (public_name utop)
(wrapped false) (wrapped false)
(modes byte) (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 (preprocess
(action (action
(run %{bin:cppo} -V OCAML:%{ocaml_version} %{input-file})))) (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/" doc: "https://ocaml-community.github.io/utop/"
bug-reports: "https://github.com/ocaml-community/utop/issues" bug-reports: "https://github.com/ocaml-community/utop/issues"
depends: [ depends: [
"dune" {>= "1.11"} "dune" {>= "2.0"}
"ocaml" {>= "4.08.0"} "ocaml" {>= "4.08.0"}
"base-unix" "base-unix"
"base-threads" "base-threads"