summary refs log tree commit diff stats
path: root/lib/system/threads.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/threads.nim')
-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):