[libcxx-commits] [libcxx] f383fb4 - Remove legacy CMake targets for libcxx and libcxxabi
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 23 07:51:55 PDT 2020
Author: Louis Dionne
Date: 2020-03-23T10:51:23-04:00
New Revision: f383fb40b17b6b39b37da588ff3c8a2972c685ad
URL: https://github.com/llvm/llvm-project/commit/f383fb40b17b6b39b37da588ff3c8a2972c685ad
DIFF: https://github.com/llvm/llvm-project/commit/f383fb40b17b6b39b37da588ff3c8a2972c685ad.diff
LOG: Remove legacy CMake targets for libcxx and libcxxabi
We've been meaning to remove those targets for a while, and the fix is
simple enough cause they're all just aliases to other targets.
There's no doubt this commit will break some CI systems, however the
fix is trivial.
Differential Revision: https://reviews.llvm.org/D76104
Added:
Modified:
libcxx/docs/BuildingLibcxx.rst
libcxx/docs/TestingLibcxx.rst
libcxx/include/CMakeLists.txt
libcxx/src/CMakeLists.txt
libcxx/test/CMakeLists.txt
libcxxabi/src/CMakeLists.txt
libcxxabi/test/CMakeLists.txt
Removed:
################################################################################
diff --git a/libcxx/docs/BuildingLibcxx.rst b/libcxx/docs/BuildingLibcxx.rst
index f2fff0e1f304..ab5c72da1c91 100644
--- a/libcxx/docs/BuildingLibcxx.rst
+++ b/libcxx/docs/BuildingLibcxx.rst
@@ -68,7 +68,7 @@ rebuilding LLVM as often. An out-of-tree build would look like this:
-DLIBCXX_CXX_ABI_INCLUDE_PATHS=path/to/separate/libcxxabi/include \
path/to/llvm-project/libcxx
$ make
- $ make check-libcxx # optional
+ $ make check-cxx # optional
Experimental Support for Windows
diff --git a/libcxx/docs/TestingLibcxx.rst b/libcxx/docs/TestingLibcxx.rst
index d295d13d26f3..0dddfd6791a8 100644
--- a/libcxx/docs/TestingLibcxx.rst
+++ b/libcxx/docs/TestingLibcxx.rst
@@ -8,9 +8,9 @@ Testing libc++
Getting Started
===============
-libc++ uses LIT to configure and run its tests.
+libc++ uses LIT to configure and run its tests.
-The primary way to run the libc++ tests is by using `make check-libcxx`.
+The primary way to run the libc++ tests is by using `make check-cxx`.
However since libc++ can be used in any number of possible
configurations it is important to customize the way LIT builds and runs
diff --git a/libcxx/include/CMakeLists.txt b/libcxx/include/CMakeLists.txt
index ca6c7c5c5675..2f375f144774 100644
--- a/libcxx/include/CMakeLists.txt
+++ b/libcxx/include/CMakeLists.txt
@@ -270,8 +270,5 @@ if (LIBCXX_INSTALL_HEADERS)
-P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
# Stripping is a no-op for headers
add_custom_target(install-${CXX_HEADER_TARGET}-stripped DEPENDS install-${CXX_HEADER_TARGET})
-
- add_custom_target(install-libcxx-headers DEPENDS install-${CXX_HEADER_TARGET})
- add_custom_target(install-libcxx-headers-stripped DEPENDS install-${CXX_HEADER_TARGET}-stripped)
endif()
endif()
diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt
index 2a9d05473be6..623b85c1d4de 100644
--- a/libcxx/src/CMakeLists.txt
+++ b/libcxx/src/CMakeLists.txt
@@ -392,5 +392,4 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND (LIBCXX_INSTALL_LIBRARY OR
-DCMAKE_INSTALL_COMPONENT=cxx
-DCMAKE_INSTALL_DO_STRIP=1
-P "${LIBCXX_BINARY_DIR}/cmake_install.cmake")
- add_custom_target(install-libcxx DEPENDS install-cxx)
endif()
diff --git a/libcxx/test/CMakeLists.txt b/libcxx/test/CMakeLists.txt
index 81474511b58c..e779bc2cbdaa 100644
--- a/libcxx/test/CMakeLists.txt
+++ b/libcxx/test/CMakeLists.txt
@@ -83,8 +83,6 @@ if (LIBCXX_INCLUDE_TESTS)
"Running libcxx tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS cxx ${LIBCXX_TEST_DEPS})
-
- add_custom_target(check-libcxx DEPENDS check-cxx)
endif()
if (LIBCXX_GENERATE_COVERAGE)
diff --git a/libcxxabi/src/CMakeLists.txt b/libcxxabi/src/CMakeLists.txt
index 965b1e223830..44aa6384e0b7 100644
--- a/libcxxabi/src/CMakeLists.txt
+++ b/libcxxabi/src/CMakeLists.txt
@@ -295,7 +295,4 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND LIBCXXABI_INSTALL_LIBRARY)
-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)
endif()
diff --git a/libcxxabi/test/CMakeLists.txt b/libcxxabi/test/CMakeLists.txt
index b47eef750a74..bedfce8bc397 100644
--- a/libcxxabi/test/CMakeLists.txt
+++ b/libcxxabi/test/CMakeLists.txt
@@ -81,6 +81,3 @@ add_lit_testsuite(check-cxxabi "Running libcxxabi tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${LIBCXXABI_TEST_DEPS}
)
-
-# TODO: This is a legacy target name and should be removed at some point.
-add_custom_target(check-libcxxabi DEPENDS check-cxxabi)
More information about the libcxx-commits
mailing list