diff options
author | Shoaib Meenai <smeenai@fb.com> | 2017-11-30 23:25:51 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2017-11-30 23:25:51 +0000 |
commit | acee992852fcac401ffaac079af0121527000f1e (patch) | |
tree | c6facdfd50263dc826368980bf36b1772572fcf2 /libcxxabi/src | |
parent | e0c51f688f597f363daf481557c70932bfe4753b (diff) | |
download | bcm5719-llvm-acee992852fcac401ffaac079af0121527000f1e.tar.gz bcm5719-llvm-acee992852fcac401ffaac079af0121527000f1e.zip |
[libc++abi] Add install-cxxabi-stripped target
LLVM is gaining install-*-stripped targets to perform stripped installs,
and in order for this to be useful for install-distribution, all
potential distribution components should have stripped installation
targets. LLVM has a function to create these install targets, but since
we can't use LLVM CMake functions in libc++abi, let's do it manually.
Differential Revision: https://reviews.llvm.org/D40681
llvm-svn: 319499
Diffstat (limited to 'libcxxabi/src')
-rw-r--r-- | libcxxabi/src/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxxabi/src/CMakeLists.txt b/libcxxabi/src/CMakeLists.txt index 32e04c8005a..240f6d0d103 100644 --- a/libcxxabi/src/CMakeLists.txt +++ b/libcxxabi/src/CMakeLists.txt @@ -192,6 +192,12 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND LIBCXXABI_INSTALL_LIBRARY) COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=cxxabi -P "${LIBCXXABI_BINARY_DIR}/cmake_install.cmake") + add_custom_target(install-cxxabi-stripped + DEPENDS cxxabi + COMMAND "${CMAKE_COMMAND}" + -DCMAKE_INSTALL_COMPONENT=cxxabi + -DCMAKE_INSTALL_DO_STRIP=1 + -P "${LIBCXXABI_BINARY_DIR}/cmake_install.cmake") # TODO: This is a legacy target name and should be removed at some point. add_custom_target(install-libcxxabi DEPENDS install-cxxabi) |