[libcxx-commits] [libcxx] [RFC][libc++] Install modules. (PR #75741)
Tom Honermann via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 19 13:59:36 PST 2023
================
@@ -424,6 +428,8 @@ set(LIBCXX_INSTALL_INCLUDE_DIR "${CMAKE_INSTALL_INCLUDEDIR}/c++/v1" CACHE STRING
"Path where target-agnostic libc++ headers should be installed.")
set(LIBCXX_INSTALL_RUNTIME_DIR "${CMAKE_INSTALL_BINDIR}" CACHE STRING
"Path where built libc++ runtime libraries should be installed.")
+set(LIBCXX_INSTALL_MODULE_DIR "usr/share/libc++/v1" CACHE STRING
+ "Path where target-agnostic libc++ modules should be installed.")
----------------
tahonermann wrote:
I think the installation location needs a better default. For myself, I build with `cmake -DCMAKE_INSTALL_PREFIX=/my/own/path` and a `usr/share` scheme doesn't fit in with what that produces.
```suggestion
set(LIBCXX_INSTALL_MODULE_INTERFACE_UNIT_SOURCE_DIR "usr/share/libc++/v1" CACHE STRING
"Path where libc++ C++20 module interface unit source files should be installed.")
```
https://github.com/llvm/llvm-project/pull/75741
More information about the libcxx-commits
mailing list