summaryrefslogtreecommitdiff
path: root/src/grt/grt-main.ads
diff options
context:
space:
mode:
authorTristan Gingold2015-03-01 18:09:30 +0100
committerTristan Gingold2015-03-01 18:09:30 +0100
commitad4ac5499e426cff9b76479e8ff6250a32fcbb57 (patch)
treed24f1903700733dbb125ebea420d0980d84d8da9 /src/grt/grt-main.ads
parent3619ff721b0456b2f15bd2d4913fd57aa97e827b (diff)
downloadghdl-ad4ac5499e426cff9b76479e8ff6250a32fcbb57.tar.gz
ghdl-ad4ac5499e426cff9b76479e8ff6250a32fcbb57.tar.bz2
ghdl-ad4ac5499e426cff9b76479e8ff6250a32fcbb57.zip
Elaborate generics in two steps. Fix -c/-e for llvm builds.
Diffstat (limited to 'src/grt/grt-main.ads')
-rw-r--r--src/grt/grt-main.ads5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/grt/grt-main.ads b/src/grt/grt-main.ads
index 4f78477..6dd7741 100644
--- a/src/grt/grt-main.ads
+++ b/src/grt/grt-main.ads
@@ -26,4 +26,9 @@
package Grt.Main is
-- Elaborate and simulate the design.
procedure Run;
+
+ -- This function is called by elaboration code once default values have
+ -- been assigned to generics, but before being used.
+ procedure Ghdl_Init_Top_Generics;
+ pragma Export (C, Ghdl_Init_Top_Generics, "__ghdl_init_top_generics");
end Grt.Main;