diff --git a/CMakeLists.txt b/CMakeLists.txt index cdbb20fe..af925eb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,8 @@ add_compile_options("-fsingle-precision-constant") # enable stack usage add_compile_options(-fstack-usage) +# enable the static analyzer for the whole project +add_compile_options(-fanalyzer) # include the target cpu and set a target board if (DEFINED TARGET_CPU) @@ -77,4 +79,4 @@ endif() add_subdirectory(${CMAKE_SOURCE_DIR}/klib) # add the project sources -add_subdirectory(${CMAKE_SOURCE_DIR}/project) \ No newline at end of file +add_subdirectory(${CMAKE_SOURCE_DIR}/project)