RosettaCommons / binder

Binder, tool for automatic generation of Python bindings
MIT License
321 stars 66 forks source link

Building against LLVM with `LLVM_BUILD_LLVM_DYLIB=OFF` #276

Open cgcgcg opened 1 year ago

cgcgcg commented 1 year 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 1 year ago

adding @andriish to the discussion

andriish commented 8 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