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

ocamlbuild path with INCLUDE camlp4.macro #5162

Closed
vicuna opened this issue Oct 4, 2010 · 4 comments
Closed

ocamlbuild path with INCLUDE camlp4.macro #5162

vicuna opened this issue Oct 4, 2010 · 4 comments

Comments

@vicuna
Copy link

vicuna commented Oct 4, 2010

Original bug ID: 5162
Reporter: yziquel
Assigned to: @xclerc
Status: closed (set by @xclerc on 2010-10-07T07:06:24Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 3.12.0
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues

Bug description

I've been trying recently to use the INCLUDE macro from camlp4.macro with ocamlbuild -use-ocamlfind. The problem is that it seems that ocamlbuild is executed in a different path than the current directory.

INCLUDE "myfile.ml" fails miserably.

INCLUDE "/full/path/to/myfile.ml" works like a charm, but is, well, quite ugly.

File attachments

@vicuna
Copy link
Author

vicuna commented Oct 5, 2010

Comment author: @ygrek

Yes, it executes in a separate build directory. Simply mark the included file as a dependency in a ocamlbuild plugin and it will copy dependencies to the proper place.

@vicuna
Copy link
Author

vicuna commented Oct 5, 2010

Comment author: @xclerc

Confirming the advice given by ygrek by attaching some files demonstrating how it could be done
("_tags", "myocamlbuild.ml", "source.ml", and "other.ml").

@vicuna
Copy link
Author

vicuna commented Oct 5, 2010

Comment author: @xclerc

My understanding is that, given the elements above, the issue could be closed.

@vicuna
Copy link
Author

vicuna commented Oct 7, 2010

Comment author: yziquel

Sure, it can be closed.

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

1 participant