Closed xcoponet closed 1 month ago
Hi @xcoponet! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
A work-around for this, is to set it in the environment instead:
$ CODECHECKER_ANALYZE_OPTS="--ignore;/path/to/codechecker-skip.txt" west build -b nrf5340dk/nrf5340/cpuapp <app> --sysbuild -- -DZEPHYR_SCA_VARIANT=codechecker
EDIT: this might not work for 3.6 though
Indeed, it doesn't work on version 3.6. I'm dependent on the version shipped with the nRF SDK. I will continue building without sysbuild until Nordic updates to 3.7.
Describe the bug When using Codechecker as an SCA tool with sysbuild, options like CODECHECKER_ANALYZE_OPTS are not passed through to the tool.
To Reproduce
west build -b nrf5340dk/nrf5340/cpuapp <app> --no-sysbuild -- -DZEPHYR_SCA_VARIANT=codechecker -DCODECHECKER_ANALYZE_OPTS="--ignore;/path/to/codechecker-skip.txt"
west build -b nrf5340dk/nrf5340/cpuapp <app> --sysbuild -- -DZEPHYR_SCA_VARIANT=codechecker -DCODECHECKER_ANALYZE_OPTS="--ignore;/path/to/codechecker-skip.txt"
message("CODECHECKER_ANALYZE_OPTS ${CODECHECKER_ANALYZE_OPTS}")
in zephyr/cmake/sca/codechecker/sca.cmake, we get that CODECHECKER_ANALYZE_OPTS is empty.Expected behavior Sysbuild should pass command line options through to zephyr/cmake/sca/codechecker/sca.cmake
Environment (please complete the following information):