[LLVMdev] Can't build against LLVM-3.5 with CMake: CMakeExports.cmake broken?

Dan Liew dan at su-root.co.uk
Wed Sep 10 03:36:12 PDT 2014


>> @David: Were you also compiling this way?
>
> The last time, yes. I built with OS X Homebrew (http://brew.sh) and it looks like their formulas use --enable-shared by default, although there is an option to turn it off (https://github.com/Homebrew/homebrew/blob/master/Library/Formula/llvm.rb). I was trying to work on a patch to update to 3.5.0 when I ran into the problem.
>
> I'll try --disable-shared with the Homebrew formula and see if that unblocks me on 3.5.0. Homebrew also has an option to pull build from trunk as well, IIRC.
>
> Perhaps we should advise the project to build with cmake if possible?

That would be nice but unfortunately there is not equivalent of
--enable-shared in the CMake build right now. You can build shared
libraries with CMake but it will build separate shared libraries (e.g.
libLLVMSuport.so, libLLVMJIT.so, ...) instead of a single monolithic
shared library (i.e. libLLVM.so) .

> It looks like this has been pretty much solved, sorry for the delay. I forgot that I had llvm-dev going to a dedicated mail folder.

I've committed the fix to trunk in r217484. Could you try trunk? If it
works for you then I'll close PR20884

Thanks,
Dan.




More information about the llvm-dev mailing list