aedi: delete install directory before making prefix one

upgrade of dependency cannot use its old header or library files anymore
This commit is contained in:
alexey.lysiuk 2021-04-02 10:46:54 +03:00
parent 48651da7ad
commit f4cea9ce31
1 changed files with 5 additions and 2 deletions

View File

@ -120,8 +120,6 @@ class Builder(object):
break
def run(self):
self._create_prefix_directory()
state = self._state
target = self._target
target.prepare_source(state)
@ -133,6 +131,11 @@ class Builder(object):
assert state.install_path
if os.path.exists(state.install_path):
shutil.rmtree(state.install_path)
self._create_prefix_directory()
if target.multi_platform and not state.xcode:
self._build_multiple_platforms(target)
else: