From caf0552573fccc6be4ee3fab141a39d2930e6272 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 30 Mar 2019 00:55:57 +0100 Subject: [PATCH] make Boehm GC work on Windows --- lib/system.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: