summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-03-30 00:55:57 +0100
committerAraq <rumpf_a@web.de>2019-03-30 00:56:21 +0100
commitcaf0552573fccc6be4ee3fab141a39d2930e6272 (patch)
tree1494cfb5aa018d27175265504aa06633b101e8f4 /lib/system.nim
parent00f419bcd6e96df3dbe3e40e6aa8684c38f9ddc4 (diff)
downloadNim-caf0552573fccc6be4ee3fab141a39d2930e6272.tar.gz
make Boehm GC work on Windows
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index b468c23a4..c0f32961b 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1869,7 +1869,10 @@ when hasThreadSupport and defined(tcc) and not compileOption("tlsEmulation"):
 
 when defined(boehmgc):
   when defined(windows):
-    const boehmLib = "boehmgc.dll"
+    when sizeof(int) == 8:
+      const boehmLib = "boehmgc64.dll"
+    else:
+      const boehmLib = "boehmgc.dll"
   elif defined(macosx):
     const boehmLib = "libgc.dylib"
   else: