diff options
-rw-r--r-- | lib/system/gc.nim | 3 | ||||
-rw-r--r-- | lib/system/gc_ms.nim | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim index df7864cff..0c632aeb1 100644 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -17,7 +17,8 @@ # stack overflows when traversing deep datastructures. It is well-suited # for soft real time applications (like games). -import arch +when defined(nimCoroutines): + import arch {.push profiler:off.} diff --git a/lib/system/gc_ms.nim b/lib/system/gc_ms.nim index 2973d1b9a..d1aecb7a2 100644 --- a/lib/system/gc_ms.nim +++ b/lib/system/gc_ms.nim @@ -10,7 +10,8 @@ # A simple mark&sweep garbage collector for Nim. Define the # symbol ``gcUseBitvectors`` to generate a variant of this GC. -import arch +when defined(nimCoroutines): + import arch {.push profiler:off.} |