Skip to content

ccache side effect on GCC SCA export format #86196

Answered by tejlmand
AlexFabre asked this question in General
Discussion options

You must be logged in to vote

This sounds like a ccache issue and not a Zephyr issue.
Ref: ccache/ccache#1466

The use of diagnostics-format is done as -DEXTRA_CFLAGS="-fanalyzer -fdiagnostics-format=sarif-file" (and AFLAGS / CXXFLAGS) meaning the build system cannot really know that ccache is not optimal in this case.

If Zephyr SCA had direct support for diagnostics-format=sarif-file, for example as part of its https://docs.zephyrproject.org/latest/develop/sca/gcc.html GCC SCA support, then we could warn the user when ccache is used, or perhaps also default the build to not use ccache per default in those cases.

For now, this is not really a Zephyr bug, but feel free to open an enhancement issue to support sarif-file

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AlexFabre
Comment options

@AlexFabre
Comment options

Answer selected by tejlmand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #84329 on February 23, 2025 18:42.