-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade ocaml-migrate-parsetree to support latest ocaml #275
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
(lang dune 1.0) | ||
(lang dune 2.0) | ||
|
||
(allow_approximate_merlin) | ||
avsm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
(name cstruct) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
(executable | ||
(name pp) | ||
(modules pp) | ||
(preprocess (action | ||
(run %{bin:cppo} -V OCAML:%{ocaml_version} %{input-file}))) | ||
(libraries | ||
ppx_cstruct | ||
ocaml-migrate-parsetree)) | ||
(name pp) | ||
(modules pp) | ||
(preprocess | ||
(action | ||
(run %{bin:cppo} -V OCAML:%{ocaml_version} %{input-file}))) | ||
(libraries ppx_cstruct ocaml-migrate-parsetree)) | ||
|
||
(executable | ||
(name gen_tests) | ||
(modules gen_tests)) | ||
(name gen_tests) | ||
(modules gen_tests)) | ||
|
||
(include dune.inc) | ||
|
||
(rule | ||
(targets dune.inc.gen) | ||
(deps (source_tree .)) | ||
(action (with-stdout-to %{targets} (run ./gen_tests.exe)))) | ||
(deps | ||
(source_tree .)) | ||
(action | ||
(with-stdout-to | ||
%{targets} | ||
(run ./gen_tests.exe)))) | ||
|
||
(alias | ||
(name runtest) | ||
(action (diff dune.inc dune.inc.gen))) | ||
(rule | ||
(alias runtest) | ||
(action | ||
(diff dune.inc dune.inc.gen))) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ type foo64 = | |
[@@uint64_t] | ||
] | ||
|
||
let%lwt foo = Lwt.return () | ||
let foo = Lwt_main.run (Lwt.return ()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why change this? That use of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The recent version of ppx_lwt gives the warning below,
I have now modified the test to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call; there should be no interop problems with modern ppx, but there were in the past, so its good to keep the test around. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs the ppx_cstruct.opam to have a corresponding
dune {>= "2.0.0"}
entry.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, just one last change needed here before merge. Since the
dune-project
affects all the associated projects, every opam package needs a correspondingdune >2
entry. e.g. the Drone CI is failing as its trying to installcstruct
with dune 1.11 and that no longer works.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have now added dune {>= "2.0.0"} constraint to all .opam files in repo.