<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/80231>80231</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Libcxx's document of C++ std library modules is outdated
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          a858438680
      </td>
    </tr>
</table>

<pre>
    Libcxx's document of C++ std library modules in [Modules in libc++](https://libcxx.llvm.org/Modules.html) is outdated, which is compiled from [Modules.rst](https://github.com/llvm/llvm-project/blob/main/libcxx/docs/Modules.rst).

In this document, the std library modules are downloads from build directory into project directory through `FetchContent`. However, this requires the downloaded library to be a CMake project, which does not hold anymore after the #76083 is merged. Now people following this document will find it confusing and frustrating.

Fortunately, the author provides another way to use the std modules, which is using the CMake option `-DLIBCXX_INSTALL_MODULES=ON` to install the `std.cppm` and `std.compat.cppm`. However the author said that currently there is not build system support. But I have explored a premature way to use the installed std modules in CMake. I'd like to contribute it to the libcxx's document. But I'm not sure whether such a pull request is acceptable?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyclMtu4zgThZ-G3hRaoKmLlYUWcfwbf4AkvegZoHcNiixbnKZIDVmM47cfUL5mpjczGxumqDqnviofGaPZO8SO1WtWbxYy0eBDJ9u6rcq2afmi9_rYvZhefXwwsYqgvUojOgK_gycm1kysIZIGa_ogwxFGr5PFCMYBq9evt1_W9Op0n9UbJtqBaIqsfGRiy8TWzgqFte9j4cOeie351WKg0TLxACaCT6QloWbiCQ6DUUM-VH6cjEUNu-DHO80iRPqV0t7QkPpC-THL2vfL15cp-D9QERPb3vqeie0ojbtaY2KrvYp3xnJ98VAwvmH88fT57IAGc4OUjdKAvwQkA4L2B2e91PFkvk_GatAmoCIfjmAceTjbujumIfi0H4A1fIukhifvKIs1vID_-wO-YzgJmwgB_0wmYJxtXOTw5oY89AgSnl7lT4Qrggtf7TGC8wSDtxqkO44-IMgdYZgrMlGuGt6WeRAjhj3qAt78ASb0k0XYeWv9wbj9ZyxwMNbCzjgNhkB5t0sxX5IuTzFFCpKM239Cu_WBkpOE9nihelrWbPrd6EzUeRowwEHOfaWIV_hn6J8W56SZb5ya9xMZ7zLVL5uX5_XT9-8_nt--_fb48vLj9evm95f_fWPl5usba3iublwkae2JQsMj6UJN05if5jYuR36cJF2eXMdzbz9Ko4EGSaBSCOjI5gljwOwxoz9tRTxGwhFimiYfqIB1IniGQb4j4MdkfUANEqaAo6QU8O8QznZR3-PIf8u59wKemVjlrfiJ-S3lHQXTJ8I8IPJzCfvPEDjbYGI1zlbjrDzgPIaY1JAtJWvnNcRIuSWpFE4ke4us3C50V-qH8kEusFuueLOqVxUvF0NXtbKvaq75UpQ1cq7rh1bhUjWiVqXYqYXpBBcVF3zJy2VTlcVSy1UrKtUgVruGa1ZxHKWx10xZmBgTdi0X5XJhZY82zrEnxF00CZFjMHRzIvRpH1nFrYkUb2XIkMX_FIm3BFukYLt_nUtzAzmC5h7-CgAA__9NCvD1">