diff options
author | Tristan Gingold | 2014-06-21 02:55:48 +0200 |
---|---|---|
committer | Tristan Gingold | 2014-06-21 02:55:48 +0200 |
commit | 2e99eb2a83307ab8e69bbfde9e57d94d1ad4499c (patch) | |
tree | 4c48f85894d50dc4c61c5822426e9c4e590dd300 /translate/ghdldrv | |
parent | 1d211b6d4d30ec206d865ba68890505f040fd04f (diff) | |
download | ghdl-2e99eb2a83307ab8e69bbfde9e57d94d1ad4499c.tar.gz ghdl-2e99eb2a83307ab8e69bbfde9e57d94d1ad4499c.tar.bz2 ghdl-2e99eb2a83307ab8e69bbfde9e57d94d1ad4499c.zip |
ghdlcomp: stop in case of errors on delayed checks.
Diffstat (limited to 'translate/ghdldrv')
-rw-r--r-- | translate/ghdldrv/ghdlcomp.adb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/translate/ghdldrv/ghdlcomp.adb b/translate/ghdldrv/ghdlcomp.adb index 1a07fc0..1d72394 100644 --- a/translate/ghdldrv/ghdlcomp.adb +++ b/translate/ghdldrv/ghdlcomp.adb @@ -321,10 +321,13 @@ package body Ghdlcomp is -- Do late analysis checks. Unit := Get_First_Design_Unit (New_Design_File); while Unit /= Null_Iir loop - Sem.Sem_Analysis_Checks_List - (Unit, Flags.Warn_Delayed_Checks); + Sem.Sem_Analysis_Checks_List (Unit, Flags.Warn_Delayed_Checks); Unit := Get_Chain (Unit); end loop; + + if Errorout.Nbr_Errors > 0 then + raise Compilation_Error; + end if; end if; end loop; |