[PATCH] D41164: Added a separate install target for compilert-rt-headers
Ilya Biryukov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 02:41:43 PST 2017
ilya-biryukov created this revision.
ilya-biryukov added reviewers: alekseyshl, krytarowski.
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/D41164
Files:
include/CMakeLists.txt
Index: include/CMakeLists.txt
===================================================================
--- include/CMakeLists.txt
+++ include/CMakeLists.txt
@@ -22,7 +22,7 @@
set(COMPILER_RT_HEADERS
${SANITIZER_HEADERS}
- ${XRAY_HEADERS})
+ ${XRAY_HEADERS})
set(output_dir ${COMPILER_RT_OUTPUT_DIR}/include)
@@ -44,9 +44,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: D41164.126703.patch
Type: text/x-patch
Size: 1008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171213/9c40e7a8/attachment.bin>
More information about the llvm-commits
mailing list