From 20c2b008227028c52d4ba2349c69dd76d9ed65ab Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 26 Aug 2015 23:59:00 +0200 Subject: [PATCH] make --gc:none work with --threads:on --- lib/system/threads.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):