winmake: clean build output for contrib if dependencies rebuild

Change-Id: I3fbfbe055255948e003e69e76cdc34f483322ccc
This commit is contained in:
Andreas Traczyk
2021-04-21 15:25:24 -04:00
parent 2129a0d439
commit 569e9a2950

View File

@ -266,7 +266,9 @@ def make(pkg_info, force, sdk_version, toolset, isPlugin):
log.debug('Forcing fetch/patch/build for ' + pkg_name)
should_fetch = not pkg_up_to_date
pkg_build_path = contrib_build_dir + '\\' + pkg_name
should_fetch &= not os.path.exists(pkg_build_path)
if os.path.exists(pkg_build_path):
log.warning('Cleaning build for ' + pkg_name)
getSHrunner().exec_batch('rmdir', ['/s', '/q', pkg_build_path])
if not pkg_up_to_date or force:
if not force and not current_version is None:
log.warning(pkg_name + ' is not up to date')