diff options
author | Shoaib Meenai <smeenai@fb.com> | 2017-11-30 22:35:02 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2017-11-30 22:35:02 +0000 |
commit | 669cae1f28fee3b02ca536181279cf4bbf2314d2 (patch) | |
tree | 8632f94ac3dbc743e8c93770e3b7c1c3f0da66e0 /clang/runtime | |
parent | 9138b7b0059521d6dabbc26362e00eaa69a6aec8 (diff) | |
download | llvm-669cae1f28fee3b02ca536181279cf4bbf2314d2.tar.gz |
[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
llvm-svn: 319489
Diffstat (limited to 'clang/runtime')
-rw-r--r-- | clang/runtime/CMakeLists.txt | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/runtime/CMakeLists.txt b/clang/runtime/CMakeLists.txt index 2190f274924f..af8ab163c7cd 100644 --- a/clang/runtime/CMakeLists.txt +++ b/clang/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) |