diff options
-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); |