From a39d8f6f4ed2ad0f8435b73bd6b2a35769c6fead Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sun, 16 Aug 2026 15:37:58 +0800 Subject: cmake: Run clang-tidy incrementally in parallel --- backend/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/CMakeLists.txt') diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index fcd75a8..2701c08 100644 --- a/backend/CMakeLists.txt +++ b/backend/CMakeLists.txt @@ -46,6 +46,10 @@ option(RCC_BACKEND_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF) option(RCC_BACKEND_ENABLE_CLANG_TIDY "Run clang-tidy during each compilation" OFF) option(RCC_BACKEND_ENABLE_EH "Enable C++ exception handling" OFF) option(RCC_BACKEND_ENABLE_RTTI "Enable C++ run-time type information" OFF) +set(RCC_BACKEND_TIDY_BASE "HEAD" CACHE STRING + "Git revision used as the merge base for incremental clang-tidy") +set(RCC_BACKEND_TIDY_JOBS "0" CACHE STRING + "Parallel clang-tidy jobs; zero uses the logical CPU count") if(RCC_BACKEND_ENABLE_EH AND NOT RCC_BACKEND_ENABLE_RTTI) message(FATAL_ERROR "RCC Backend exception handling requires RTTI") -- cgit v1.2.3