summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-02 00:55:29 +0100
committerAraq <rumpf_a@web.de>2011-11-02 00:55:29 +0100
commit351e89e705c05bd9968010ab1af1674e7eda0d59 (patch)
treeebdbb14eba617b56c0a65df891889ca165c0576f /lib/system
parent47f523cfb8b5d430d1105c608440200950183bb1 (diff)
downloadNim-351e89e705c05bd9968010ab1af1674e7eda0d59.tar.gz
better code generation for constant aggregates
Diffstat (limited to 'lib/system')
-rwxr-xr-xlib/system/gc.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index 9e0e88612..293c6eeea 100755
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -63,10 +63,11 @@ type
     region: TMemRegion       # garbage collected region
     stat: TGcStat
 
-var
-  gch {.rtlThreadVar.}: TGcHeap
+when not defined(useNimRtl):
+  var
+    gch {.rtlThreadVar.}: TGcHeap
 
-InstantiateForRegion(gch.region)
+  InstantiateForRegion(gch.region)
 
 proc acquire(gch: var TGcHeap) {.inline.} = 
   when hasThreadSupport and hasSharedHeap: