aboutsummaryrefslogtreecommitdiff
path: root/backend/CMakeLists.txt
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-16 15:37:58 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-16 15:37:58 +0800
commita39d8f6f4ed2ad0f8435b73bd6b2a35769c6fead (patch)
treee18600b7459edd38c00c4074a30511691aeda345 /backend/CMakeLists.txt
parent3c998e2fc02c6ca7869c586cbf2e1cbb7ea3c7bf (diff)
downloadrcc-project-a39d8f6f4ed2ad0f8435b73bd6b2a35769c6fead.tar.gz
rcc-project-a39d8f6f4ed2ad0f8435b73bd6b2a35769c6fead.tar.xz
cmake: Run clang-tidy incrementally in parallel
Diffstat (limited to 'backend/CMakeLists.txt')
-rw-r--r--backend/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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")