aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdldrv/ghdlcomp.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-06-25 18:53:43 +0200
committerTristan Gingold <tgingold@free.fr>2020-06-25 18:53:43 +0200
commit366c04ab365cad2544fd39d3ce72e0f1c9ae1d29 (patch)
treea6ff0ca837ac06b06daa30193dae9f3966be84ed /src/ghdldrv/ghdlcomp.adb
parent71bafde697314d92bf73f9bccc14e49550260bf1 (diff)
downloadghdl-366c04ab365cad2544fd39d3ce72e0f1c9ae1d29.tar.gz
ghdl-366c04ab365cad2544fd39d3ce72e0f1c9ae1d29.tar.bz2
ghdl-366c04ab365cad2544fd39d3ce72e0f1c9ae1d29.zip
vhdl: avoid crash on error for -c/-r.
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;