diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index fefabe53f..ce32baf38 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2564,10 +2564,14 @@ else: when not defined(JS): #and not defined(nimscript): {.push stack_trace: off, profiler:off.} + when not ( + defined(boehmgc) or + defined(gogc) or + (defined(nogc) and defined(useMalloc))): + proc initAllocator() {.inline.} + when not defined(nimscript) and not defined(nogc): proc initGC() - when not defined(boehmgc) and not defined(useMalloc) and not defined(gogc): - proc initAllocator() {.inline.} proc initStackBottom() {.inline, compilerproc.} = # WARNING: This is very fragile! An array size of 8 does not work on my |