diff options
Diffstat (limited to 'src/grt/ghdl_main.adb')
-rw-r--r-- | src/grt/ghdl_main.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/grt/ghdl_main.adb b/src/grt/ghdl_main.adb index 92e69c362..fd1a76ef4 100644 --- a/src/grt/ghdl_main.adb +++ b/src/grt/ghdl_main.adb @@ -24,6 +24,7 @@ with Ada.Unchecked_Conversion; with Grt.Options; use Grt.Options; with Grt.Main; with Grt.Types; use Grt.Types; +with Grt.Modules; -- Some files are only referenced from compiled code. With it here so that -- they get compiled during build (and elaborated). @@ -45,7 +46,7 @@ is Args : constant Grt.Options.Argv_Type := To_Argv_Type (Argv); Progname : Ghdl_C_String := null; begin - -- Ada elaboration. + -- Self Ada elaboration. Grt_Init; -- Set the options. @@ -54,6 +55,10 @@ begin end if; Grt.Main.Run_Options (Progname, Argc, Args); + -- Register modules. + -- They may insert hooks. + Grt.Modules.Register_Modules; + -- Initialize, elaborate and simulate. Grt.Main.Run; |