Using output of `ocamlfind <params> -only-show` in a dune build

Hi,

Sorry for to reply one year later but I finally I had the time and motivation to work on this. I managed to figure out a solution to build the llvm bindings using dune and to include the statically linked variants.

Here is the repository to test it: https://github.com/kit-ty-kate/llvm-dune

$ cd llvm-dune
$ git submodule update --init
$ ./setup.sh <llvm-config> # Replace with the correct llvm-config command
$ dune build --profile=release
$ dune install

I’m planning to use it in the release of llvm.11.0.0 (I’ll probably need to patch the generated META file first to avoid issues with people using the old findlib predicate feature).
I’ll do proper announces in multiples places first to see if multiple people can test it first to see if there aren’t any issues with it. It works for https://github.com/kit-ty-kate/labrys (both in shared and static mode) but I’m not sure to know who uses the ocaml bindings to ask them directly.

3 Likes