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

2019-01-14 Thread Alexander Richardson via Phabricator via cfe-commits
arichardson added a comment. I'm happy with this approach since the triple can be set on the commandline. If this gets merged I will update CHERI lld to use the triple instead of the new emulation that we added. Comment at: ELF/Driver.cpp:757 + if (!TargetOpt.empty()) { +

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

2019-01-13 Thread Michał Górny via Phabricator via cfe-commits
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 bas