alan-j-hu / llvm-dune

The official LLVM OCaml binding but built using dune
Other
26 stars 3 forks source link

Could you release binding for v18.1.8 ? #19

Open Kakadu opened 1 month ago

Kakadu commented 1 month ago

I tried to do this myself but after ./setup.sh llvm-config-18 and dune b --profile=release I got an error. No idea how to proceed @alan-j-hu

➜  llvm-dune git:(v18.1.8) ✗ dune b --profile=release                                              
File "src/target/static/dune", line 8, characters 9-21:
8 |   (names target_ocaml)
             ^^^^^^^^^^^^
target_ocaml.c:18:10: fatal error: target_ocaml.h: No such file or directory
   18 | #include "target_ocaml.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
File "src/target/shared/dune", line 8, characters 9-21:
8 |   (names target_ocaml)
             ^^^^^^^^^^^^
target_ocaml.c:18:10: fatal error: target_ocaml.h: No such file or directory
   18 | #include "target_ocaml.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
➜  llvm-dune git:(v18.1.8) ✗ find . -iname target_ocaml.h                                                                                                    4.14.2+flambda
./_build/default/src/target/target_ocaml.h
./src/target/target_ocaml.h
./llvm-project/llvm/bindings/ocaml/target/target_ocaml.h
alan-j-hu commented 1 week ago

Sorry, I was trying to figure out how to do this after I released LLVM 17, but because of how some of the LLVM bindings source code is structured in LLVM 18, the Bash script has to be modified. IIRC this wasn't straightforward, and I need to take another look at it.