From a65b44cae90b0b9f4edfad93922c12be957e513e Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Sat, 3 Sep 2016 10:56:27 +0800 Subject: [PATCH] one more fix condition --- lib/system.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index c97ccf4ebf..26feb5ce8c 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2582,10 +2582,11 @@ else: when not defined(JS): #and not defined(nimscript): {.push stack_trace: off, profiler:off.} - when not defined(nimscript): + when hasAlloc: when not defined(gcStack): proc initGC() - when not defined(boehmgc) and not defined(useMalloc) 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.} = @@ -2603,7 +2604,6 @@ when not defined(JS): #and not defined(nimscript): when declared(setStackBottom): setStackBottom(locals) - when hasAlloc: var strDesc = TNimType(size: sizeof(string), kind: tyString, flags: {ntfAcyclic})