[PATCH] D42462: [cmake] [compiler-rt] Call llvm_setup_rpath() when adding shared libraries.

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 27 13:18:00 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL323606: [cmake] [compiler-rt] Call llvm_setup_rpath() when adding shared libraries. (authored by dhinton, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D42462

Files:
  compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake


Index: compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
===================================================================
--- compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
+++ compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
@@ -247,6 +247,9 @@
       target_link_libraries(${libname} ${LIB_LINK_LIBS})
     endif()
     if(${type} STREQUAL "SHARED")
+      if(COMMAND llvm_setup_rpath)
+        llvm_setup_rpath(${libname})
+      endif()
       if(WIN32 AND NOT CYGWIN AND NOT MINGW)
         set_target_properties(${libname} PROPERTIES IMPORT_PREFIX "")
         set_target_properties(${libname} PROPERTIES IMPORT_SUFFIX ".lib")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42462.131691.patch
Type: text/x-patch
Size: 646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180127/a40592d4/attachment.bin>


More information about the llvm-commits mailing list