summary refs log tree commit diff stats
path: root/lib/system/gc_ms.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-04-05 13:49:59 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-04-05 13:49:59 +0200
commit2d80a9e4a6e38e53a7923c9afeeec0f3a9a7aa1d (patch)
treee209cc5f0a888e55d84a82777bb4d9a50f8633c9 /lib/system/gc_ms.nim
parent46ee026e77921b25e6f09ff5a5f7f1e9bd6afefe (diff)
parent13d06d9a5ca83d655c8272b4baafaf4d2c941b2a (diff)
downloadNim-2d80a9e4a6e38e53a7923c9afeeec0f3a9a7aa1d.tar.gz
Merge pull request #4047 from jboy/patch-1
Add `import sharedlist` when `hasThreadSupport`
Diffstat (limited to 'lib/system/gc_ms.nim')
-rw-r--r--lib/system/gc_ms.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system/gc_ms.nim b/lib/system/gc_ms.nim
index c764571b1..ec69f6e5f 100644
--- a/lib/system/gc_ms.nim
+++ b/lib/system/gc_ms.nim
@@ -28,6 +28,9 @@ template mulThreshold(x): expr {.immediate.} = x * 2
 
 when defined(memProfiler):
   proc nimProfile(requestedSize: int)
+  
+when hasThreadSupport:
+  import sharedlist
 
 type
   WalkOp = enum