<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 18, 2016 at 4:09 AM, Carsten Mattner <span dir="ltr"><<a href="mailto:carstenmattner@gmail.com" target="_blank">carstenmattner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Sun, Sep 18, 2016 at 6:30 AM, Mehdi Amini <<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>> wrote:<br>
<br>
> I’m not sure I understand the question about lld. Lld will be a<br>
> different linker, with its own set of option. Actually we usually<br>
> rely on the clang driver to hide platform specific option and<br>
> provide a common interface to the user.<br>
<br>
</span>I was thinking if I force lld, then the -Wl param will be the same<br>
across platforms, and I wouldn't have to accommodate for different<br>
linkers.<br></blockquote><div><br></div><div>Actually, if you force lld you won't be able to get ThinLTO. The support for ThinLTO is currently in gold via the gold plugin, and ld64. The ThinLTO support is currently being added to the lld linker.</div><div><br></div><div>I was thinking of adding a clang option to control the parallelism. In gcc the LTO parallelism can be specified by -flto=N. However, we are using -flto[=Full,Thin] to specify the type of LTO. So perhaps a separate -flto_parallelism=N.</div><div><br></div><div>Teresa</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><br>
> I don’t believe LDFLAGS is a valid cmake flag. You need to define<br>
> both CMAKE_EXE_LINKER_FLAGS and CMAKE_SHARED_LINKER_FLAGS.<br>
<br>
</span>It respects it, as it should, or otherwise packagers would have to<br>
replicate CFLAGS, CXXFLAGS, etc. via CMAKE_*_FLAGS in package build<br>
descriptions.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-794490570311097029gmail_signature" data-smartmail="gmail_signature"><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Teresa Johnson |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> <a href="tel:408-460-2413" value="+14084602413" target="_blank">408-460-2413</a></td></tr></tbody></table></span></div>
</div></div>