[LLVMdev] LLD Standalone CMake build

Rui Ueyama ruiu at google.com
Thu Jan 8 14:20:54 PST 2015


On Thu, Jan 8, 2015 at 11:38 AM, Greg Fitzgerald <garious at gmail.com> wrote:

> I'm hoping to revive the LLD standalone CMake build.  I'm new to this
> build but it looks like it borrowed code from an old version of
> compiler-rt, which I did some work on last year.  Like compiler-rt,
> I'd like to get the LLD build up running with only CMAKE_PREFIX_PATH
> instead of defining custom variables like LLD_PATH_TO_LLVM_BUILD and
> LLD_PATH_TO_LLVM_SOURCE.  Any objection to that?
>

I think I don't have enough knowledge on the CMake build system to comment
on this. If no one objects and things keep working, that'd be fine to me.


> Also, two files ELFLinkingContext.cpp and MachOLinkingContext.cpp
> include a private header from the LLVM source tree,
> "llvm/Config/config.h" to get access to HAVE_CXXABI_H.  Can the
> dependency on HAVE_CXXABI_H be removed?  If no, mind if I add a
> config.h.cmake to LLD's "include/lld/Config"?


I believe that dependency cannot be removed since the code really needs to
know whether cxxabi.h is available or not. Feel free to add config.h.cmake
to include/lld/Config.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150109/23964d11/attachment.html>


More information about the llvm-dev mailing list