summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-08-26 23:59:00 +0200
committerAraq <rumpf_a@web.de>2015-08-26 23:59:00 +0200
commit20c2b008227028c52d4ba2349c69dd76d9ed65ab (patch)
treec88ac550acfc0216730c96acb2ba07945f354eb3
parentc0ad9a96cef4793b3c2f2ce24f02da076ea887dc (diff)
downloadNim-20c2b008227028c52d4ba2349c69dd76d9ed65ab.tar.gz
make --gc:none work with --threads:on
-rw-r--r--lib/system/threads.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim
index 315a70af5..c7cb8d9df 100644
--- a/lib/system/threads.nim
+++ b/lib/system/threads.nim
@@ -244,7 +244,7 @@ when useStackMaskHack:
 when not defined(useNimRtl):
   when not useStackMaskHack:
     #when not defined(createNimRtl): initStackBottom()
-    initGC()
+    when declared(initGC): initGC()
 
   when emulatedThreadVars:
     if nimThreadVarsSize() > sizeof(ThreadLocalStorage):