[PATCH] D56650: [lld] [ELF] Support customizing behavior on target triple

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 30 11:16:20 PST 2019


mgorny added a comment.

In D56650#1377494 <https://reviews.llvm.org/D56650#1377494>, @ruiu wrote:

> But that's only adding missing `-L` and perhaps a few more, no? That doesn't seem too hard to do in gcc.


Probably not, provided nobody will block it. I'm not the one opposed to it.

> I don't want to repeat what compiler drivers do in the linker. Also, even with this patch, you need to make a change to gcc to pass `--target` parameter to the linker, right?

Well, no, since gcc doesn't really support cross-compiling the way clang does, so it will just be happy with LLVM's default triple. We will probably want to patch GNU ld to accept/ignore `--target` though.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56650/new/

https://reviews.llvm.org/D56650





More information about the llvm-commits mailing list