<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature">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></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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 class="gmail_extra">The original design of lld had a single driver for all 3 formats that compatibility drivers would target. It was eventually determined that this didn't work in practice as the formats are each so different, so this was dropped and was not carried over to the new COFF and ELF lld designs.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div><div class="gmail_signature">- Michael Spencer</div></div><div><br></div></div></div>