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

View file

@ -120,8 +120,6 @@ class Builder(object):
break break
def run(self): def run(self):
self._create_prefix_directory()
state = self._state state = self._state
target = self._target target = self._target
target.prepare_source(state) target.prepare_source(state)
@ -133,6 +131,11 @@ class Builder(object):
assert state.install_path 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: if target.multi_platform and not state.xcode:
self._build_multiple_platforms(target) self._build_multiple_platforms(target)
else: else: