<div dir="ltr">The -flavor option exists mostly for historical reasons. I think using ld.lld or lld-link is preferred way over "lld -flavor gnu" or "lld -flavor link".<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 26, 2017 at 2:06 PM, N via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
According to lld/docs/Driver.rst, Flavor command line option determines the style of lld command-line interface when invoked.<br>
<br>
However, it looks like this option also determines the set of supported targets we are linking for. For example, lld -flavor gnu<br>
cannot link mach-o binaries, and could not link PE binaries either (well, not until rL312926).<br>
<br>
Is this really intended by the design of lld? It looks the flavours are merely legacy compatibility shims, but then why is there no<br>
universal lld driver that is able to link binary for any platform using a unified CLI?<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div></div>