Skip to content

Commit

Permalink
The internal tools only compile in OCaml >= 4.10 (uses compiler-libs)
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Jun 2, 2021
1 parent 674d388 commit e7acd94
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 1.11)
(lang dune 2.3)
(name ocaml-migrate-parsetree)
(allow_approximate_merlin)
(using cinaps 1.0)
2 changes: 1 addition & 1 deletion ocaml-migrate-parsetree.opam
Original file line number Diff line number Diff line change
Expand Up @@ -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}
]
Expand Down
19 changes: 17 additions & 2 deletions tools/dune
Original file line number Diff line number Diff line change
@@ -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))

Expand Down

0 comments on commit e7acd94

Please sign in to comment.