summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-07-08 18:05:22 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-07-08 18:05:22 +0000
commite008391ea2becf5963e141174335f7c3dfe7cbba (patch)
treefddc41ad1c4f726daa3fae8321119c9e200c7bcd
parent83b8ad0eaa7926c243e799b6166d285614e4e2d0 (diff)
downloadbcm5719-llvm-e008391ea2becf5963e141174335f7c3dfe7cbba.tar.gz
bcm5719-llvm-e008391ea2becf5963e141174335f7c3dfe7cbba.zip
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 llvm-svn: 241696
-rw-r--r--lld/tools/lld/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt
index 1041c9be3d3..b1bc3f243d9 100644
--- a/lld/tools/lld/CMakeLists.txt
+++ b/lld/tools/lld/CMakeLists.txt
@@ -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})
OpenPOWER on IntegriCloud