diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-03-01 06:51:37 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-03-01 06:51:37 +0100 |
commit | 09f051e990a8952a404932f1449ee7ef949ad0a7 (patch) | |
tree | 9e81f9a6bc008036d55ab27763650a795d573f7b /src/ghdldrv | |
parent | e4ce0ea45b4196b9604ec3902ccc57a2c089febd (diff) | |
download | ghdl-09f051e990a8952a404932f1449ee7ef949ad0a7.tar.gz ghdl-09f051e990a8952a404932f1449ee7ef949ad0a7.tar.bz2 ghdl-09f051e990a8952a404932f1449ee7ef949ad0a7.zip |
ghdl_mcode: error message if no file to analyze.
Diffstat (limited to 'src/ghdldrv')
-rw-r--r-- | src/ghdldrv/ghdlcomp.adb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ghdldrv/ghdlcomp.adb b/src/ghdldrv/ghdlcomp.adb index b20d12ac2..5c9d5fe25 100644 --- a/src/ghdldrv/ghdlcomp.adb +++ b/src/ghdldrv/ghdlcomp.adb @@ -361,6 +361,11 @@ package body Ghdlcomp is Unit : Iir; Next_Unit : Iir; begin + if Args'Length = 0 then + Error ("no file to analyze"); + raise Compilation_Error; + end if; + Setup_Libraries (True); Hooks.Compile_Init.all (True); |