[PATCH] D56650: [lld] [ELF] Support inferring target triple from filename

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 13 14:00:38 PST 2019


mgorny created this revision.
mgorny added reviewers: ruiu, joerg, krytarowski, arichardson.
Herald added subscribers: llvm-commits, emaste.
Herald added a reviewer: espindola.

Support inferring the target triple from linker filename (e.g.
${triple}-ld.lld), and customizing the linker behavior based on it.
If the filename does not match any known target, lld defaults
to the default target configured in LLVM.

// NB: I understand this patch isn't going to be accepted upstream. However, since we're probably end up living with it in NetBSD, I'd appreciate any suggestions if the code could be improved.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D56650

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/Driver.h
  ELF/Options.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56650.181483.patch
Type: text/x-patch
Size: 5718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190113/14e39945/attachment-0001.bin>


More information about the cfe-commits mailing list