From 9f7028e0885cb780ec1466158299dd1adf8f1f84 Mon Sep 17 00:00:00 2001 From: Jevin Sweval Date: Sat, 21 May 2022 16:01:05 -0700 Subject: [PATCH] Quartus build: bail out on error --- litex/build/altera/quartus.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/build/altera/quartus.py b/litex/build/altera/quartus.py index 7ec1360c1..74d903c0d 100644 --- a/litex/build/altera/quartus.py +++ b/litex/build/altera/quartus.py @@ -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}