summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/system.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 6af5dc01f..c97ccf4eb 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2582,10 +2582,10 @@ else:
 when not defined(JS): #and not defined(nimscript):
   {.push stack_trace: off, profiler:off.}
 
-  when not defined(nimscript) and (not defined(nogc) or not defined(useMalloc)):
+  when not defined(nimscript):
     when not defined(gcStack):
       proc initGC()
-    when not defined(boehmgc) and not defined(gogc) and not defined(gcStack):
+    when not defined(boehmgc) and not defined(useMalloc) and not defined(gogc) and not defined(gcStack):
       proc initAllocator() {.inline.}
 
     proc initStackBottom() {.inline, compilerproc.} =