aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdldrv/ghdlcomp.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/ghdldrv/ghdlcomp.adb')
-rw-r--r--src/ghdldrv/ghdlcomp.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ghdldrv/ghdlcomp.adb b/src/ghdldrv/ghdlcomp.adb
index 560a5ffd2..c58360aee 100644
--- a/src/ghdldrv/ghdlcomp.adb
+++ b/src/ghdldrv/ghdlcomp.adb
@@ -326,7 +326,9 @@ package body Ghdlcomp is
Flags.Flag_Elaborate := True;
Config := Vhdl.Configuration.Configure (Prim_Id, Sec_Id);
- if Config = Null_Iir then
+ if Config = Null_Iir
+ or else Errorout.Nbr_Errors > 0
+ then
raise Compilation_Error;
end if;