[cfe-dev] How to build shared and static libclang* files

Wink Saville via cfe-dev cfe-dev at lists.llvm.org
Tue Apr 23 15:31:41 PDT 2019


> On 04/22/2019 11:40 PM, Wink Saville wrote:
> > Txs for the reply, hard to believe its impossible, llvm itself can
> > build both static and shared libraries if -DLLVM_BUILD_LLVM_DYLIB=on.
> > And actually, as I mentioned in my original post, there is already a
> > clang shared library, libclang.so.8. The problem with it is that it
> > only exposes the 380 C API entry points, not the full set of entry
> > points available with the libclang[[:alpha:]]+.a versions.
> >
>
> This is just a difference between llvm and clang.  llvm has a special
> llvm-shlib target that builds libLLVM.so when LLVM_BUILD_LLVM_DYLIB
> is enabled.  We could just as easily add this to clang, it's just
> that no one has yet.

OK, I'm going to give building both a try.



More information about the cfe-dev mailing list