This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Force west to NOT fully rebuild project

Hi Nordic engineers,

I am using west to build the nRF NCS, my own project which is adopted from samples. Using Powershell (win10) to run west commands as below.

I need to do quick builds but west build -b with the following arguments keeps rebuilding everything:

west build -p=never -b nrf52840dk_nrf52840 -d <build_dir> -- -DBOARD_ROOT=<Board_root_dir> -DCMAKE_BUILD_TYPE=<build_type> -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH="C:\gnuarm\gcc"

I set the pristine option to "never" as you can see above, and it has no effect, it still rebuilds everything, which takes quite some time....

Any idea how I can achieve a simple compile and build (i.e. only sources that have changed ) ?

Related