[libcxx-commits] [libcxx] [RFC][libc++] Install modules. (PR #75741)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 3 10:01:34 PST 2024


================
@@ -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 "${CMAKE_INSTALL_INCLUDEDIR}/../modules/c++/v1" CACHE STRING
----------------
mordante wrote:

I've removed the `usr`. 

> I see very few things in my usr/include that aren't textual inclusion for C or C++. There's some evidence that fortran may put mod files there, but it looks like rust puts similar information in share/cargo, which isn't a choice for C++.

If only C++ had one package manager ;-)

https://github.com/llvm/llvm-project/pull/75741


More information about the libcxx-commits mailing list