build/microsemi/libero_soc: remove previous impl directory if exists

This commit is contained in:
Florent Kermarrec 2018-11-23 08:11:57 +01:00
parent 18d513a146
commit 953b1f70df
1 changed files with 3 additions and 0 deletions

View File

@ -237,6 +237,9 @@ class MicrosemiLiberoSoCPolarfireToolchain:
# run
if run:
# delete previous impl
if os.path.exists("impl"):
shutil.rmtree("impl")
_run_script(script)
os.chdir(cwd)