Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

Bad .cmt files using dune multipackage installation process

$
0
0

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.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles