[PATCH] D41244: Added a separate install target for compilert-rt-headers

Ilya Biryukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 08:22:43 PST 2017


ilya-biryukov created this revision.
ilya-biryukov added a reviewer: alekseyshl.
Herald added subscribers: Sanitizers, mgorny.

This patch adds a new install target `install-compilert-rt-headers`,
that is similar to `install-clang-headers`.

It allows to install the headers without installing all of
compiler-rt.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D41244

Files:
  include/CMakeLists.txt


Index: include/CMakeLists.txt
===================================================================
--- include/CMakeLists.txt
+++ include/CMakeLists.txt
@@ -23,7 +23,7 @@
 
 set(COMPILER_RT_HEADERS
   ${SANITIZER_HEADERS}
-	${XRAY_HEADERS})
+  ${XRAY_HEADERS})
 
 set(output_dir ${COMPILER_RT_OUTPUT_DIR}/include)
 
@@ -45,9 +45,17 @@
 
 # Install sanitizer headers.
 install(FILES ${SANITIZER_HEADERS}
+  COMPONENT compiler-rt-headers
   PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
   DESTINATION ${COMPILER_RT_INSTALL_PATH}/include/sanitizer)
 # Install xray headers.
 install(FILES ${XRAY_HEADERS}
+  COMPONENT compiler-rt-headers
   PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
   DESTINATION ${COMPILER_RT_INSTALL_PATH}/include/xray)
+
+if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDEs.
+  add_llvm_install_targets(install-compiler-rt-headers
+                           DEPENDS compiler-rt-headers
+                           COMPONENT compiler-rt-headers)
+endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41244.126971.patch
Type: text/x-patch
Size: 1008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171214/c44de74e/attachment.bin>


More information about the llvm-commits mailing list