[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
Sat Jan 27 11:59:08 PST 2018
hintonda updated this revision to Diff 131690.
hintonda added a comment.
Only call llvm_setup_rpath() if available is true.
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,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.131690.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180127/42416b66/attachment.bin>
More information about the llvm-commits
mailing list