build time with west for zephyr projects : how to re-build without the 'build setup' phase eg when just recompiling C files

I'm building my zephyr project for nRF5340, using west.

However, each time I change my code and re-build to try it, my PC (which is pretty recent) takes around 40-50s just re-doing all the build config stuff, rebuilding the core zephyr bit etc before actually compiling the 1 or 2 C files I changed! This ends up being quite frustrating...

I already tell west the --pristine auto option, which does mean it only re-compiles the C I changed, but how can I get it to not redo all the build config stuff ( as generally I have no changes to CMakefiles, no changes to dts files etc)

thanks!

Related