This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Change MipsLinux default linker from "lld" to "ld.lld"
ClosedPublic

Authored by MaskRay on Aug 24 2018, 2:17 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Aug 24 2018, 2:17 PM
This revision is now accepted and ready to land.Aug 26 2018, 12:08 AM
This revision was automatically updated to reflect the committed changes.
ruiu added a subscriber: ruiu.Aug 26 2018, 7:09 PM

If this piece of code used to be working correctly, there is another piece of code that adds -flavor ld to the command line. But if that's the case, this change wouldn't work because it constructs something like "ld.lld -flavor ld ...". ld.lld doesn't accept -flavor option.

So my guess is this code is dead. Or, am I missing something?

If this piece of code used to be working correctly, there is another piece of code that adds -flavor ld to the command line. But if that's the case, this change wouldn't work because it constructs something like "ld.lld -flavor ld ...". ld.lld doesn't accept -flavor option.

So my guess is this code is dead. Or, am I missing something?

The tools::gnutools::Linker::ConstructJob method contains code which adds -flavor old-gnu command line option if linker name is "lld". Probably this code can be removed now.