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

Don Hinton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 21:31:40 PST 2018


hintonda created this revision.
hintonda added reviewers: beanz, compnerd, phosek, EricWF.
Herald added subscribers: Sanitizers, llvm-commits, mgorny, dberris.

Clang and llvm already use llvm_setup_rpath(), so this change will
help standarize rpath usage across all projects.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D42462

Files:
  cmake/Modules/AddCompilerRT.cmake


Index: cmake/Modules/AddCompilerRT.cmake
===================================================================
--- cmake/Modules/AddCompilerRT.cmake
+++ cmake/Modules/AddCompilerRT.cmake
@@ -247,6 +247,7 @@
       target_link_libraries(${libname} ${LIB_LINK_LIBS})
     endif()
     if(${type} STREQUAL "SHARED")
+      llvm_setup_rpath(${libname})
       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.131198.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180124/bbbe2e38/attachment.bin>


More information about the llvm-commits mailing list