xtensa-build-zephyr.py: don't complain about cmake_args when pristine

Don't ask the user to delete the build directory when they are using the
option that deletes the build directory.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2022-09-16 23:45:20 +00:00 committed by Liam Girdwood
parent 586716e1b9
commit b19cd3f080
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ def build_platforms():
abs_build_dir = pathlib.Path(west_top, platform_build_dir_name)
if (pathlib.Path(abs_build_dir, "build.ninja").is_file()
or pathlib.Path(abs_build_dir, "Makefile").is_file()):
if args.cmake_args:
if args.cmake_args and not args.pristine:
print(args.cmake_args)
raise RuntimeError("Some CMake arguments are ignored in incremental builds, "
+ f"you must delete {abs_build_dir} first")