build: stop at the first failed Quartus command
authorSebastien Bourdeauducq <sb@m-labs.hk>
Tue, 29 Sep 2015 07:53:18 +0000 (15:53 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Tue, 29 Sep 2015 07:53:18 +0000 (15:53 +0800)
migen/build/altera/quartus.py

index aab2048b8c6b22136dd8f26e11ac4a05cd260f48..4b5b835504d5f67af0febbbd46024ce5742ed096 100644 (file)
@@ -94,6 +94,8 @@ def _build_files(device, sources, vincpaths, named_sc, named_pc, build_name):
 def _run_quartus(build_name, quartus_path):
     build_script_contents = """# Autogenerated by Migen
 
+set -e
+
 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}