diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-10-30 16:15:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 16:15:17 +0100 |
commit | 1746da2d9e3d802d990d9636d2f6887a4aeb5dc9 (patch) | |
tree | 687727e8d4b858eb74db2e07a1a778cff58a7bdd /lib/system/mmdisp.nim | |
parent | b5bb58164270a819cfb37655139251955541a964 (diff) | |
download | Nim-1746da2d9e3d802d990d9636d2f6887a4aeb5dc9.tar.gz |
--gc:destructors now means Nim uses pure refcounting (#12557)
Diffstat (limited to 'lib/system/mmdisp.nim')
-rw-r--r-- | lib/system/mmdisp.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim index de89acd33..330c551c5 100644 --- a/lib/system/mmdisp.nim +++ b/lib/system/mmdisp.nim @@ -507,10 +507,10 @@ else: elif defined(gcRegions): # XXX due to bootstrapping reasons, we cannot use compileOption("gc", "stack") here include "system/gc_regions" - elif defined(nimV2) or defined(gcDestructors): + elif defined(nimV2) or usesDestructors: var allocator {.rtlThreadVar.}: MemRegion instantiateForRegion(allocator) - when defined(gcDestructors): + when defined(gcHooks): include "system/gc_hooks" elif defined(gcMarkAndSweep): # XXX use 'compileOption' here |