diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-10-31 07:19:16 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-10-31 07:19:16 +0100 |
| commit | b1143bde71bb029ac2bf7d08ba422fcdaedd56a6 (patch) | |
| tree | 5504ff2c08fdbe0f078e65c667c6fe09c02b8aab /CMakeLists.txt | |
| parent | c5ff471e253b27c0d58a78a07322f63522b3e487 (diff) | |
| download | teachos-b1143bde71bb029ac2bf7d08ba422fcdaedd56a6.tar.xz teachos-b1143bde71bb029ac2bf7d08ba422fcdaedd56a6.zip | |
build: enable linting
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d45997..8e53923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,12 @@ include("ElfTransformations") include("GenerateBootableIso") #[============================================================================[ +# Global Build System Options +#]============================================================================] + +option(TEACHOS_ENABLE_LINTING "Enable linting during build" ON) + +#[============================================================================[ # Global Build System Configuration #]============================================================================] @@ -32,6 +38,17 @@ add_compile_options( ) #[============================================================================[ +# Global Linting Configuration +#]============================================================================] + +find_program(CLANG_TIDY_EXE "clang-tidy") + +if(CLANG_TIDY_EXE AND TEACHOS_ENABLE_LINTING) + set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY_EXE}") + set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXE}") +endif() + +#[============================================================================[ # Kernel Executable #]============================================================================] |
