[libcxx-commits] [libcxx] [libc++][doc] Updates module build instructions. (PR #89413)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 23 08:55:44 PDT 2024


================
@@ -214,6 +219,64 @@ Building this project is done with the following steps, assuming the files
 
              ``error: module file _deps/std-build/CMakeFiles/std.dir/std.pcm cannot be loaded due to a configuration mismatch with the current compilation [-Wmodule-file-config-mismatch]``
 
+
+Using the installed modules
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+CMake has added experimental support for importing the Standard modules. This
+is available in the current nightly builds and will be part of the 3.30
+release. Currently CMake only supports importing the Standard modules in C++23
+and later. Enabling this for C++20 is on the TODO list of the CMake
+developers.
+
+The example uses the same ``main.cpp`` as above. It uses the following
+``CMakeLists.txt``
----------------
ldionne wrote:

```suggestion
``CMakeLists.txt``:
```

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


More information about the libcxx-commits mailing list