diamond: close project when done

Avoids ".recovery file is present" prompt.
This commit is contained in:
Shawn Hoffman 2020-05-09 02:16:24 -07:00
parent 9b782bd7da
commit eeee179dd8
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ def _build_tcl(device, sources, vincpaths, build_name):
if _produces_jedec(device): if _produces_jedec(device):
tcl.append("prj_run Export -impl impl -task Jedecgen") tcl.append("prj_run Export -impl impl -task Jedecgen")
# Cleanly close the project
tcl.append("prj_project close")
tools.write_to_file(build_name + ".tcl", "\n".join(tcl)) tools.write_to_file(build_name + ".tcl", "\n".join(tcl))
# Script ------------------------------------------------------------------------------------------- # Script -------------------------------------------------------------------------------------------