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

Peter Collingbourne peter at pcc.me.uk
Wed Jul 8 11:05:22 PDT 2015


Author: pcc
Date: Wed Jul  8 13:05:22 2015
New Revision: 241696

URL: http://llvm.org/viewvc/llvm-project?rev=241696&view=rev
Log:
Create lld-link2 symlink/copy for new COFF linker.

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.

Differential Revision: http://reviews.llvm.org/D11031

Modified:
    lld/trunk/tools/lld/CMakeLists.txt

Modified: lld/trunk/tools/lld/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/tools/lld/CMakeLists.txt?rev=241696&r1=241695&r2=241696&view=diff
==============================================================================
--- lld/trunk/tools/lld/CMakeLists.txt (original)
+++ lld/trunk/tools/lld/CMakeLists.txt Wed Jul  8 13:05:22 2015
@@ -24,3 +24,8 @@ endif()
 set(dst "${LLVM_RUNTIME_OUTPUT_INTDIR}/lld-link${CMAKE_EXECUTABLE_SUFFIX}")
 add_custom_command(TARGET lld POST_BUILD
   COMMAND ${CMAKE_COMMAND} -E ${command} ${src} ${dst})
+
+# FIXME: Remove once the lld-link2 alias is gone.
+set(dst2 "${LLVM_RUNTIME_OUTPUT_INTDIR}/lld-link2${CMAKE_EXECUTABLE_SUFFIX}")
+add_custom_command(TARGET lld POST_BUILD
+  COMMAND ${CMAKE_COMMAND} -E ${command} ${src} ${dst2})





More information about the llvm-commits mailing list