Hi,
I have a repository with various packages, let’s says A and B. B depends on A. A and B have their own opam file in the repository.
When I use dune build @install && dune install
everything is installed, no problem. Except that the cmt_loadpath
of .cmt
files of B refer to A/.A.objs/byte
directory, i.e. the directory used at compilation time of B, rather than the final installation directory of A. This is not a bug of course, but rather inconvenient.
Is there some dune magic to perform compilation and installation of each package one after the other, using the installed package rather than the files in _build ? In my example, this would consist in the following steps:
- compile A
- install A
- compile B using the files of the installation directrory of A, not the files in _build,
- install B.