[llvm-dev] (Thin)LTO llvm build

Carsten Mattner via llvm-dev llvm-dev at lists.llvm.org
Sun Sep 18 04:09:20 PDT 2016


On Sun, Sep 18, 2016 at 6:30 AM, Mehdi Amini <mehdi.amini at apple.com> wrote:

> I’m not sure I understand the question about lld. Lld will be a
> different linker, with its own set of option. Actually we usually
> rely on the clang driver to hide platform specific option and
> provide a common interface to the user.

I was thinking if I force lld, then the -Wl param will be the same
across platforms, and I wouldn't have to accommodate for different
linkers.

> I don’t believe LDFLAGS is a valid cmake flag. You need to define
> both CMAKE_EXE_LINKER_FLAGS and CMAKE_SHARED_LINKER_FLAGS.

It respects it, as it should, or otherwise packagers would have to
replicate CFLAGS, CXXFLAGS, etc. via CMAKE_*_FLAGS in package build
descriptions.


More information about the llvm-dev mailing list