Clang/CXXImportStd: support -stdlib=libstdc++

Fedora 42 ships `clang` with `libstdc++` as the default. Detect and
support `import std;` in this configuration.
This commit is contained in:
Ben Boeckel
2025-04-30 13:47:27 +02:00
parent ba5c9703b1
commit c88f3ea1e4
2 changed files with 32 additions and 19 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ Compilers which CMake natively supports module dependency scanning include:
Support for ``import std`` is limited to the following toolchain and standard
library combinations:
* Clang 18.1.2 and newer with ``-stdlib=libc++``
* Clang 18.1.2 and newer with ``-stdlib=libc++`` or ``-stdlib=libstdc++``
* MSVC toolset 14.36 and newer (provided with Visual Studio 17.6 Preview 2 and
newer)