[PATCH] D41752: [CMake] Collect target names in the global LLVM_RUNTIMES property

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 18:15:12 PST 2018


phosek created this revision.
phosek added a reviewer: beanz.
Herald added subscribers: Sanitizers, mgorny.

This allows exporting the runtimes targets using the CMake export.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D41752

Files:
  cmake/Modules/AddCompilerRT.cmake


Index: cmake/Modules/AddCompilerRT.cmake
===================================================================
--- cmake/Modules/AddCompilerRT.cmake
+++ cmake/Modules/AddCompilerRT.cmake
@@ -297,6 +297,7 @@
     if(type STREQUAL "SHARED")
       rt_externalize_debuginfo(${libname})
     endif()
+    set_property(GLOBAL APPEND PROPERTY LLVM_RUNTIMES ${libname})
   endforeach()
   if(LIB_PARENT_TARGET)
     add_dependencies(${LIB_PARENT_TARGET} ${libnames})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41752.128701.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180105/f5712d9d/attachment.bin>


More information about the llvm-commits mailing list