Quartus build: bail out on error

This commit is contained in:
Jevin Sweval 2022-05-21 16:01:05 -07:00
parent a426ec9e2f
commit 9f7028e088
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ def _build_script(build_name, create_rbf):
script_contents = "# Autogenerated by LiteX / git: " + tools.get_litex_git_revision()
script_file = "build_" + build_name + ".sh"
script_contents += """
set -e -u -x -o pipefail
quartus_map --read_settings_files=on --write_settings_files=off {build_name} -c {build_name}
quartus_fit --read_settings_files=off --write_settings_files=off {build_name} -c {build_name}
quartus_asm --read_settings_files=off --write_settings_files=off {build_name} -c {build_name}