forked from OSchip/llvm-project
[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
This commit is contained in:
parent
e0c51f688f
commit
acee992852
|
@ -192,6 +192,12 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND LIBCXXABI_INSTALL_LIBRARY)
|
||||||
COMMAND "${CMAKE_COMMAND}"
|
COMMAND "${CMAKE_COMMAND}"
|
||||||
-DCMAKE_INSTALL_COMPONENT=cxxabi
|
-DCMAKE_INSTALL_COMPONENT=cxxabi
|
||||||
-P "${LIBCXXABI_BINARY_DIR}/cmake_install.cmake")
|
-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.
|
# TODO: This is a legacy target name and should be removed at some point.
|
||||||
add_custom_target(install-libcxxabi DEPENDS install-cxxabi)
|
add_custom_target(install-libcxxabi DEPENDS install-cxxabi)
|
||||||
|
|
Loading…
Reference in New Issue