RosettaCommons / binder

Binder, tool for automatic generation of Python bindings
MIT License
317 stars 67 forks source link

Building against LLVM with `LLVM_BUILD_LLVM_DYLIB=OFF` #276

Open cgcgcg opened 9 months ago

cgcgcg commented 9 months ago

I am trying to build against a pre-installed LLVM and CMake errors out here: https://github.com/RosettaCommons/binder/blob/5a666845357f73d199dd6a274820736cb0ee0b91/source/CMakeLists.txt#L53-L59 I believe the reason is that I don't have a single LLVM library (LLVM CMAKE option LLVM_BUILD_LLVM_DYLIB) but individual component libraries. I added clangAST to the list of names, and that build seems to go through. Is that a reasonable way of enabling builds against LLVM without a single shared library?

lyskov commented 9 months ago

adding @andriish to the discussion

andriish commented 6 months ago

Hi @cgcgcg,

you can try to add to the 'NAMES' at least one component. If that will work - depends, I don't know which OS do you use.

Andrii