aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-01-11 07:58:25 +0100
committerTristan Gingold <tgingold@free.fr>2020-01-11 07:58:25 +0100
commit24a15798311381e1352df93ba41e69247371ffc9 (patch)
treed6aa481b40a8a6df9037023b6d40bde1f02ee707 /src/synth
parentd85003f32eb6d1d2384c2748d2d4089cd1636d87 (diff)
downloadghdl-24a15798311381e1352df93ba41e69247371ffc9.tar.gz
ghdl-24a15798311381e1352df93ba41e69247371ffc9.tar.bz2
ghdl-24a15798311381e1352df93ba41e69247371ffc9.zip
synth: add --expect-failure for command --synth
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/synthesis.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/synth/synthesis.adb b/src/synth/synthesis.adb
index e2d72142e..6583460cf 100644
--- a/src/synth/synthesis.adb
+++ b/src/synth/synthesis.adb
@@ -58,7 +58,8 @@ package body Synthesis is
Synth_Top_Entity (Global_Instance, Arch, Config, Inst);
Synth_All_Instances;
if Errorout.Nbr_Errors > 0 then
- raise Compilation_Error;
+ M := No_Module;
+ return;
end if;
M := Get_Top_Module (Global_Instance);