summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-11-30 22:35:02 +0000
committerShoaib Meenai <smeenai@fb.com>2017-11-30 22:35:02 +0000
commitb44ae5f9b10d26651777750c3b01368399a1504d (patch)
tree8848e291856e110f0035f2734885b94467388b60 /runtime
parente0a9480f64277460bf76a6683debe15cd4ab1aac (diff)
[clang] Use add_llvm_install_targets
Use this function to create the install targets rather than doing so manually, which gains us the `-stripped` install targets to perform stripped installations. Differential Revision: https://reviews.llvm.org/D40675 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r--runtime/CMakeLists.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
index 2190f27492..af8ab163c7 100644
--- a/runtime/CMakeLists.txt
+++ b/runtime/CMakeLists.txt
@@ -101,12 +101,9 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)
install(CODE "execute_process\(COMMAND \${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=\${CMAKE_INSTALL_PREFIX} -P ${BINARY_DIR}/cmake_install.cmake \)"
COMPONENT compiler-rt)
- add_custom_target(install-compiler-rt
- DEPENDS compiler-rt
- COMMAND "${CMAKE_COMMAND}"
- -DCMAKE_INSTALL_COMPONENT=compiler-rt
- -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
- USES_TERMINAL)
+ add_llvm_install_targets(install-compiler-rt
+ DEPENDS compiler-rt
+ COMPONENT compiler-rt)
# Add top-level targets that build specific compiler-rt runtimes.
set(COMPILER_RT_RUNTIMES fuzzer asan builtins dfsan lsan msan profile tsan ubsan ubsan-minimal)