mirror of https://github.com/thesofproject/sof.git
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:
parent
586716e1b9
commit
b19cd3f080
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue