added nimAllocPagesViaMalloc switch (#18490)

* added  switch

* alloc.nim needs page aligned memory blocks
This commit is contained in:
Andreas Rumpf 2021-07-15 17:58:47 +02:00 • committed by GitHub
commit af3d2d8ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 46 additions and 7 deletions

View file

@ -34,7 +34,7 @@ closed
destroying variable: 20
destroying variable: 10
'''
cmd: "nim c --gc:arc --deepcopy:on $file"
cmd: "nim c --gc:arc --deepcopy:on -d:nimAllocPagesViaMalloc $file"
"""
proc takeSink(x: sink string): bool = true