[PATCH] D11031: [lld] Create lld-link2 symlink/copy for new COFF linker.
Peter Collingbourne
peter at pcc.me.uk
Wed Jul 8 01:44:45 PDT 2015
pcc added a reviewer: ruiu.
pcc added subscribers: llvm-commits, samsonov.
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.
http://reviews.llvm.org/D11031
Files:
tools/lld/CMakeLists.txt
Index: tools/lld/CMakeLists.txt
===================================================================
--- tools/lld/CMakeLists.txt
+++ tools/lld/CMakeLists.txt
@@ -24,3 +24,8 @@
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})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11031.29249.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150708/f62c3f24/attachment.bin>
More information about the llvm-commits
mailing list