[lld] r220130 - Make lld-link symlink relative.

Shankar Easwaran shankarke at gmail.com
Fri Oct 17 22:26:35 PDT 2014


Author: shankare
Date: Sat Oct 18 00:26:35 2014
New Revision: 220130

URL: http://llvm.org/viewvc/llvm-project?rev=220130&view=rev
Log:
Make lld-link symlink relative.

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=220130&r1=220129&r2=220130&view=diff
==============================================================================
--- lld/trunk/tools/lld/CMakeLists.txt (original)
+++ lld/trunk/tools/lld/CMakeLists.txt Sat Oct 18 00:26:35 2014
@@ -13,10 +13,12 @@ install(TARGETS lld
 # supported by the operating system, create a copy instead.
 if(UNIX)
   set(command create_symlink)
+  # Make relative symlink
+  set(src "lld${CMAKE_EXECUTABLE_SUFFIX}")
 else()
   set(command copy)
+  set(src "${LLVM_RUNTIME_OUTPUT_INTDIR}/lld${CMAKE_EXECUTABLE_SUFFIX}")
 endif()
-set(src "${LLVM_RUNTIME_OUTPUT_INTDIR}/lld${CMAKE_EXECUTABLE_SUFFIX}")
 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})





More information about the llvm-commits mailing list