diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-11-20 10:30:17 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-11-20 10:30:17 +0100 |
| commit | 7a5116b1e1d6a5c649b0bfbd9baf689608c3f7b5 (patch) | |
| tree | df9c9df33cdc1b26957138dd50ed5539582710db /CMakeLists.txt | |
| parent | 01805b0a7b78e4eed2c30f5c34e0044a0b240634 (diff) | |
| download | kernel-7a5116b1e1d6a5c649b0bfbd9baf689608c3f7b5.tar.xz kernel-7a5116b1e1d6a5c649b0bfbd9baf689608c3f7b5.zip | |
build: ensure clang-tidy uses the correct paths
Previously, clang-tidy would fall back to the global GCC toolchain and
its include paths, meaning that any custom patches would be ignored. A
partial solution had already been implemented for header checks, but
the regular cpp file checks did not use the new flags.
This change extracts the GCC toolchain location determination into the
platform's CMake toolchain file and then applies those flags to both
header and cpp file checks consistently.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a6950a3b..d10d1c97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,7 +117,7 @@ find_program(CLANG_TIDY_EXE NAMES if(CLANG_TIDY_EXE AND TEACHOS_ENABLE_LINTING) set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY_EXE}") - set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXE}") + set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXE}" ${CLANG_TIDY_EXTRA_ARGS}) endif() #[============================================================================[ |
