You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Confirming the advice given by ygrek by attaching some files demonstrating how it could be done
("_tags", "myocamlbuild.ml", "source.ml", and "other.ml").
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
The text was updated successfully, but these errors were encountered: