[llvm-dev] [lld] Flavour option purpose

N via llvm-dev
Thu, 26 Oct 2017 21:06:19 -0000

Hi all,

According to lld/docs/Driver.rst, Flavor command line option determines the
style of lld command-line interface when invoked.

However, it looks like this option also determines the set of supported targets
we are linking for. For example, lld -flavor gnu
cannot link mach-o binaries, and could not link PE binaries either (well, not
until rL312926).

Is this really intended by the design of lld? It looks the flavours are merely
legacy compatibility shims, but then why is there no
universal lld driver that is able to link binary for any platform using a
unified CLI?