cmake: sca: codechecker: Allow processing results even on errors

The analyze step for codechecker can have errors. These are printed out
to the console, allow to keep processing results for other succeeded
analysis.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-03-07 16:06:27 +01:00 committed by Anas Nashif
parent 66eb627b02
commit b6e65dd57a

View file

@ -26,6 +26,7 @@ add_custom_target(codechecker ALL
--name zephyr # Set a default metadata name
${CODECHECKER_ANALYZE_OPTS}
${CMAKE_BINARY_DIR}/compile_commands.json
|| ${CMAKE_COMMAND} -E true # allow to continue processing results
DEPENDS ${CMAKE_BINARY_DIR}/compile_commands.json ${output_dir}/codechecker.ready
BYPRODUCTS ${output_dir}/codechecker.plist
VERBATIM