summary refs log tree commit diff stats
path: root/lib/system/gc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/gc.nim')
-rw-r--r--lib/system/gc.nim3
1 files changed, 2 insertions, 1 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.}