From b8ce104c97b84ed569d0562806f7a64ab0dced32 Mon Sep 17 00:00:00 2001 From: illyum Date: Tue, 11 Mar 2025 13:04:20 -0600 Subject: [PATCH] Add C++20 Modules support and compiler requirements --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 99a3eb8..54c098c 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,19 @@ NOTE: If you want to use export compile commands you need to use ```sh -DUSE_COMPILE_COMMANDS=ON -``` \ No newline at end of file +``` + +### **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) \ No newline at end of file