* fix #16458; make useNimRtl compile for --gc:orc/arc * fix tests
This commit is contained in:
parent
27e548140b
commit
b936bfd01a
4 changed files with 13 additions and 5 deletions
|
|
@ -82,8 +82,9 @@ else:
|
|||
# XXX due to bootstrapping reasons, we cannot use compileOption("gc", "stack") here
|
||||
include "system/gc_regions"
|
||||
elif defined(nimV2) or usesDestructors:
|
||||
var allocator {.rtlThreadVar.}: MemRegion
|
||||
instantiateForRegion(allocator)
|
||||
when not defined(useNimRtl):
|
||||
var allocator {.rtlThreadVar.}: MemRegion
|
||||
instantiateForRegion(allocator)
|
||||
when defined(gcHooks):
|
||||
include "system/gc_hooks"
|
||||
elif defined(gcMarkAndSweep):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue