From 0b3ef5d35c27724d033188eb6156e5eb91c4f821 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 13 Jul 2026 10:35:03 +0800 Subject: [PATCH] CMake: adds comments --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59e46817a..a4c454dfa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,6 +202,9 @@ if(LINUX) endif() endif() +# Minimal compiler version supported: GCC 13 (2023-04-26), Clang 16 (2023-03-17) +# Most C23 features are allowed with noticeable exceptions of `constexpr` and `#embed` +# See https://cppreference.com/c/compiler_support/23 for detail set(CMAKE_C_STANDARD 23) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} -Werror=incompatible-pointer-types -Werror=implicit-function-declaration -Werror=int-conversion")