Closed jberdine closed 2 years ago
Also, the new header file will be included, I think, only starting with LLVM 13.
Sorry for all the time it took me to come back to llvm..
I used a different solution by simply always copying llvm_ocaml.h
so that we don't have any maintenance cost in the future.
See: https://github.com/kit-ty-kate/llvm-dune/commit/7512ef851a08ff276e1353e661097d6e9f20ca89
However upon testing:
This also happens with the regular `llvm.13.0.0` and `llvm.14.0.0` package. I'm going to investigate.
In LLVM main, there is now a llvm/bindings/ocaml/llvm/llvm_ocaml.h file. The creation of
static
andshared
directories performed bysetup.sh
breaks#include "llvm_ocaml.h"
. This patch works around this by adding support for addingextra_deps
to the generateddune
files forllvm_ocaml.h
, and adds some-I
flags to find it.I make no claims that this is a good solution.