Skip to content

Commit

Permalink
[3/3] Enable OCaml 4.13 in cinaps and opam
Browse files Browse the repository at this point in the history
Co-authored-by: Sonja Heinze <[email protected]>
  • Loading branch information
kit-ty-kate and pitag-ha committed May 31, 2021
1 parent c61b27d commit b31f4ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml-migrate-parsetree.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build: [
]
depends: [
"dune" {>= "1.11"}
"ocaml" {>= "4.02.3" & < "4.13"}
"ocaml" {>= "4.02.3" & < "4.14"}
]
synopsis: "Convert OCaml parsetrees between different versions"
description: """
Expand Down
1 change: 1 addition & 0 deletions src/cinaps_helpers/cinaps_helpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let supported_versions = [
("410", "4.10");
("411", "4.11");
("412", "4.12");
("413", "4.13");
]

let foreach_version f =
Expand Down
1 change: 1 addition & 0 deletions src/config/gen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ let () =
| (4, 10) -> "410"
| (4, 11) -> "411"
| (4, 12) -> "412"
| (4, 13) -> "413"
| _ ->
Printf.eprintf "Unknown OCaml version %s\n" ocaml_version_str;
exit 1)
3 changes: 3 additions & 0 deletions src/migrate_parsetree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module Ast_409 = Ast_409
module Ast_410 = Ast_410
module Ast_411 = Ast_411
module Ast_412 = Ast_412
module Ast_413 = Ast_413
(*$*)

(* Manual migration between versions *)
Expand Down Expand Up @@ -64,6 +65,8 @@ module Migrate_410_411 = Migrate_410_411
module Migrate_411_410 = Migrate_411_410
module Migrate_411_412 = Migrate_411_412
module Migrate_412_411 = Migrate_412_411
module Migrate_412_413 = Migrate_412_413
module Migrate_413_412 = Migrate_413_412
(*$*)

(* Aliases for compiler-libs modules that might be shadowed *)
Expand Down

0 comments on commit b31f4ed

Please sign in to comment.