Add C++20 Modules support and compiler requirements

This commit is contained in:
illyum 2025-03-11 13:04:20 -06:00
parent 22f6b4acfe
commit b8ce104c97

View File

@ -36,3 +36,18 @@ If you want to use export compile commands you need to use
```sh
-DUSE_COMPILE_COMMANDS=ON
```
### **C++ Modules Support**
To build and use **C++20 Modules**, ensure the following prerequisites are met:
#### **1. Compiler Support**
You need a compiler that supports **C++20 Modules**. The following versions are required:
- **GCC 11+** (Recommended: **GCC 14.2.0+**)
- **Clang 10+**
- **MSVC 19.30+ (Visual Studio 2022+)**
To check your compiler version, run:
```sh
g++ --version
```
Ensure it outputs GCC 11+, preferably GCC 14.2.0 or later. You can check if your compiler supports CPP Modules [on this page](https://en.cppreference.com/w/cpp/compiler_support/20)