From 5874bce91c16f7b647affed0819da25771c8ecd0 Mon Sep 17 00:00:00 2001 From: RecruitMain707 <37117366+RecruitMain707@users.noreply.github.com> Date: Tue, 20 Oct 2020 14:22:02 +0200 Subject: [PATCH] Fix compilation error for regions and memory profiling (#15641) (#15656) Co-authored-by: Recruit_main707 (cherry picked from commit ed0f8a497333c75b9035c4e7837ee1158d53aa20) --- lib/system/gc_regions.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/system/gc_regions.nim b/lib/system/gc_regions.nim index 9425e040a9..3943371922 100644 --- a/lib/system/gc_regions.nim +++ b/lib/system/gc_regions.nim @@ -8,6 +8,9 @@ # "Stack GC" for embedded devices or ultra performance requirements. +when defined(memProfiler): + proc nimProfile(requestedSize: int) {.benign.} + when defined(useMalloc): proc roundup(x, v: int): int {.inline.} = result = (x + (v-1)) and not (v-1)