Skip to content
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

MPR#5548: ocamlbuild's ocamlfind integration doesn't support syntax extensions #213

Open
damiendoligez opened this issue Mar 3, 2017 · 0 comments
Assignees

Comments

@damiendoligez
Copy link
Member

PR transferred from https://caml.inria.fr/mantis/view.php?id=5548
[original reporter: @gasche ]

OCamlbuild's ocamlfind integration includes -I-options and stuff from ocamlfind in the "compile" and "link" ocamlbuild steps but, to my knowledge, does not include them during preprocessing ("pp"). This means that while ocamlfind libraries can be used, I don't know how to use their attached syntax extensions (ocamlfind's predicate "syntax"). It would be nice if that was fixed.


With some ocamlfind package foo.syntax that enables syntax extensions, and some file test.ml using the extension,

  ocamlfind ocamlc -syntax camlp4o -package foo.syntax test.ml

does not raise a syntax error, while for instance

  ocamlbuild -use-ocamlfind -tag "package(foo.syntax)" test.pp.ml

does (because neither ocamlfind's -I-option nor the camlp4 extension archive name are included in the camlp4o invocation).


I have discussed this with Anil Madhavapeddy which mentioned a related need on the mailing list:

https://groups.google.com/forum/#!topic/fa.caml/y6VsobyJV0s/discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants