Skip to content

Commit f35c421

Browse files
committed
IAR C-Stat exclude mcu folder
1 parent d92b810 commit f35c421

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/build_system/cmake/toolchain/arm_iar.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ find_program(CMAKE_IAR_REPORT ireport)
2020

2121
if (IAR_CSTAT)
2222
cmake_minimum_required(VERSION 4.1)
23-
set(CMAKE_C_ICSTAT ${CMAKE_IAR_CSTAT} --checks=${CMAKE_CURRENT_LIST_DIR}/cstat_sel_checks.txt --db=${CMAKE_BINARY_DIR}/cstat.db --sarif_dir=${CMAKE_BINARY_DIR}/cstat_sarif)
23+
set(CMAKE_C_ICSTAT ${CMAKE_IAR_CSTAT}
24+
--checks=${CMAKE_CURRENT_LIST_DIR}/cstat_sel_checks.txt
25+
--db=${CMAKE_BINARY_DIR}/cstat.db
26+
--sarif_dir=${CMAKE_BINARY_DIR}/cstat_sarif
27+
--exclude ${TOP}/hw/mcu --exclude ${TOP}/lib
28+
)
2429
endif ()
2530

2631
include(${CMAKE_CURRENT_LIST_DIR}/common.cmake)

0 commit comments

Comments
 (0)