gc:destructors progress

This commit is contained in:
Andreas Rumpf 2019-09-16 23:54:21 +02:00
commit 62aa1a3cfe
6 changed files with 72 additions and 8 deletions

View file

@ -505,10 +505,12 @@ else:
elif defined(gcRegions):
# XXX due to bootstrapping reasons, we cannot use compileOption("gc", "stack") here
include "system/gc_regions"
elif defined(nimV2):
elif defined(nimV2) or defined(gcDestructors):
var allocator {.rtlThreadVar.}: MemRegion
instantiateForRegion(allocator)
elif defined(gcMarkAndSweep) or defined(gcDestructors):
when defined(gcDestructors):
include "system/gc_hooks"
elif defined(gcMarkAndSweep):
# XXX use 'compileOption' here
include "system/gc_ms"
else: