aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-11-05 18:54:46 +0100
committerTristan Gingold <tgingold@free.fr>2021-11-05 18:54:46 +0100
commit68e5a0ad8c2637ea0009057b22fcb883893c6f34 (patch)
tree43dbe3ef22f062e3294c1820a7fd4c6c3407e789
parent894b357144b5b84800e970ee952f137485b6fb62 (diff)
downloadghdl-68e5a0ad8c2637ea0009057b22fcb883893c6f34.tar.gz
ghdl-68e5a0ad8c2637ea0009057b22fcb883893c6f34.tar.bz2
ghdl-68e5a0ad8c2637ea0009057b22fcb883893c6f34.zip
ghdlcomp: exit with error status in case of error. For #1908
-rw-r--r--src/ghdldrv/ghdlcomp.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ghdldrv/ghdlcomp.adb b/src/ghdldrv/ghdlcomp.adb
index 541e8b7cb..d06da3510 100644
--- a/src/ghdldrv/ghdlcomp.adb
+++ b/src/ghdldrv/ghdlcomp.adb
@@ -755,6 +755,10 @@ package body Ghdlcomp is
-- Create list of files.
Files_List := Build_Dependence (Lib_Id, Prim_Id, Sec_Id);
+ if Errorout.Nbr_Errors /= 0 then
+ raise Errorout.Compilation_Error;
+ end if;
+
-- Unmark all libraries.
Lib := Libraries.Std_Library;
while Lib /= Null_Iir loop