This is an archive of the discontinued LLVM Phabricator instance.

[lld] Create lld-link2 symlink/copy for new COFF linker.
ClosedPublic

Authored by pcc on Jul 8 2015, 1:44 AM.

Details

Summary

This situation will only be temporary; I imagine we will eventually want to
have the new linker take the lld-link alias after we remove the old one.
However, I would like to port the CFI test suite in the compiler-rt
repository to Windows using the new COFF linker's LTO support; these tests
currently use gcc-style command lines and invoke the linker via the
compiler driver.

We can select the linker using the -fuse-ld flag, which Clang supports on
Windows, but it takes an executable name, rather than a list of arguments
(so "-fuse-ld=lld -flavor link2" wouldn't work), and it doesn't seem worth
the effort to extend the Clang driver to support arguments.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 29249.Jul 8 2015, 1:44 AM
pcc retitled this revision from to [lld] Create lld-link2 symlink/copy for new COFF linker..
pcc updated this object.
pcc added a reviewer: ruiu.
pcc added subscribers: llvm-commits, samsonov.
ruiu accepted this revision.Jul 8 2015, 9:06 AM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jul 8 2015, 9:06 AM
This revision was automatically updated to reflect the committed changes.