diff options
author | Mark de Wever <koraq@xs4all.nl> | 2024-01-17 08:11:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 08:11:25 +0100 |
commit | d06ae33ec32122bb526fb35025c1f0cf979f1090 (patch) | |
tree | 5bff59f185bac4235f22ea775a76b3bc0a564f91 /libcxx/docs | |
parent | d89a0a65947eb0c7bce733ee76991f900209d139 (diff) | |
download | llvm-d06ae33ec32122bb526fb35025c1f0cf979f1090.zip llvm-d06ae33ec32122bb526fb35025c1f0cf979f1090.tar.gz llvm-d06ae33ec32122bb526fb35025c1f0cf979f1090.tar.bz2 |
[libc++][modules] Removes module testing. (#76083)
This removes the entire modules testing infrastructure.
The current infrastructure uses CMake to generate the std and std.compat
module. This requires quite a bit of plumbing and uses CMake. Since
CMake introduced module support in CMake 3.26, modules have a higher
CMake requirement than the rest of the LLVM project. (The LLVM project
requires 3.20.) The main motivation for this approach was how libc++
generated its modules. Every header had its own module partition. This
was changed to improve performance and now only two modules remain. The
code to build these can be manually crafted.
A followup patch will reenable testing modules, using a different
approach.
Diffstat (limited to 'libcxx/docs')
-rw-r--r-- | libcxx/docs/Modules.rst | 2 | ||||
-rw-r--r-- | libcxx/docs/ReleaseNotes/18.rst | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libcxx/docs/Modules.rst b/libcxx/docs/Modules.rst index 5099e60..1998cd9d 100644 --- a/libcxx/docs/Modules.rst +++ b/libcxx/docs/Modules.rst @@ -115,7 +115,7 @@ directory. First libc++ needs to be build with module support enabled. $ git clone https://github.com/llvm/llvm-project.git $ cd llvm-project $ mkdir build - $ cmake -G Ninja -S runtimes -B build -DLIBCXX_ENABLE_STD_MODULES=ON -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" + $ cmake -G Ninja -S runtimes -B build -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" $ ninja -C build The above ``build`` directory will be referred to as ``<build>`` in the diff --git a/libcxx/docs/ReleaseNotes/18.rst b/libcxx/docs/ReleaseNotes/18.rst index 6a68514..931de8b 100644 --- a/libcxx/docs/ReleaseNotes/18.rst +++ b/libcxx/docs/ReleaseNotes/18.rst @@ -89,6 +89,10 @@ Improvements and New Features - The ``_LIBCPP_ENABLE_CXX20_REMOVED_SHARED_PTR_UNIQUE`` macro has been added to make the function ``std::shared_ptr<...>::unique()`` available. +- The cmake option ``LIBCXX_ENABLE_STD_MODULES`` has been removed. The test + infrastructure no longer depends on a modern CMake, it works with the minimal + required LLVM version (3.20.0). + Deprecations and Removals ------------------------- |