Skip to content

Commit 26f262d

Browse files
committed
Address review comments.
1 parent e020e08 commit 26f262d

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
set(LIBCXX_INSTALL_MODULES ON CACHE BOOL "") # TODO MODULES Remove when enabled automatically.
12
set(LIBCXX_TEST_PARAMS "std=c++20" CACHE STRING "")
23
set(LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS}" CACHE STRING "")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
set(LIBCXX_INSTALL_MODULES ON CACHE BOOL "") # TODO MODULES Remove when enabled automatically.
12
set(LIBCXX_TEST_PARAMS "std=c++23" CACHE STRING "")
23
set(LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS}" CACHE STRING "")

libcxx/docs/ReleaseNotes/18.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Improvements and New Features
9898
configuring CMake with ``-DLIBCXX_INSTALL_MODULES=ON``. The installation
9999
directory can be configured with the CMake option
100100
``-DLIBCXX_INSTALL_MODULE_DIR=<path>``. The default location is
101-
``share/libc++/v1`` in the same prefix as the ``include`` directory.
101+
``${PREFIX}/share/libc++/v1``.
102102

103103

104104
Deprecations and Removals

libcxx/modules/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ add_custom_target(generate-cxx-modules
183183
${_all_modules}
184184
)
185185

186+
# Configure the modules manifest.
186187
# Use the relative path between the installation and the module in the json
187188
# file. This allows moving the entire installation to a different location.
188189
file(RELATIVE_PATH LIBCXX_MODULE_RELATIVE_PATH
@@ -232,6 +233,6 @@ if (LIBCXX_INSTALL_MODULE_INTERFACE_UNIT_SOURCES)
232233
-DCMAKE_INSTALL_COMPONENT=cxx-modules
233234
-P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
234235
# Stripping is a no-op for modules
235-
add_custom_target(install-cxx-modules-stripped DEPENDS install-cxx-headers)
236+
add_custom_target(install-cxx-modules-stripped DEPENDS install-cxx-modules)
236237
endif()
237238
endif()

libcxx/src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,19 +400,21 @@ if (NOT CMAKE_CONFIGURATION_TYPES)
400400
set(header_install_target install-cxx-headers)
401401
endif()
402402
if(LIBCXX_INSTALL_MODULE_INTERFACE_UNIT_SOURCES)
403-
set(header_install_target install-cxx-modules)
403+
set(module_install_target install-cxx-modules)
404404
endif()
405405
add_custom_target(install-cxx
406406
DEPENDS ${lib_install_target}
407407
cxx_experimental
408408
${header_install_target}
409+
${module_install_target}
409410
COMMAND "${CMAKE_COMMAND}"
410411
-DCMAKE_INSTALL_COMPONENT=cxx
411412
-P "${LIBCXX_BINARY_DIR}/cmake_install.cmake")
412413
add_custom_target(install-cxx-stripped
413414
DEPENDS ${lib_install_target}
414415
cxx_experimental
415416
${header_install_target}
417+
${module_install_target}
416418
COMMAND "${CMAKE_COMMAND}"
417419
-DCMAKE_INSTALL_COMPONENT=cxx
418420
-DCMAKE_INSTALL_DO_STRIP=1

0 commit comments

Comments
 (0)