diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-22 18:52:52 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-22 21:31:26 +0200 |
commit | b7992d8601cac632b75897182fb529c9409105ea (patch) | |
tree | 7cedef452e230409016f786860c8a3f7bce4dcab /src/ghdldrv/ghdlsynth.adb | |
parent | d78d7477758f7212890daabcb53b9e2852a3f41a (diff) | |
download | ghdl-b7992d8601cac632b75897182fb529c9409105ea.tar.gz ghdl-b7992d8601cac632b75897182fb529c9409105ea.tar.bz2 ghdl-b7992d8601cac632b75897182fb529c9409105ea.zip |
find_top_entity: add location to report errors. Fix #1254
Diffstat (limited to 'src/ghdldrv/ghdlsynth.adb')
-rw-r--r-- | src/ghdldrv/ghdlsynth.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb index 4166609bd..9fc3a2e98 100644 --- a/src/ghdldrv/ghdlsynth.adb +++ b/src/ghdldrv/ghdlsynth.adb @@ -253,7 +253,8 @@ package body Ghdlsynth is -- Elaborate if E_Opt = Args'Last then -- No unit. - Top := Vhdl.Configuration.Find_Top_Entity (Libraries.Work_Library); + Top := Vhdl.Configuration.Find_Top_Entity + (Libraries.Work_Library, Libraries.Command_Line_Location); if Top = Null_Node then Ghdlmain.Error ("no top unit found"); return Null_Iir; |