From 244657035050c2b513587de45bebfefa553d6456 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 2 Oct 2019 08:57:24 -0700 Subject: [PATCH] fixes #12330 (#12331) --- lib/core/locks.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/locks.nim b/lib/core/locks.nim index 392c8aed45..42d67388f2 100644 --- a/lib/core/locks.nim +++ b/lib/core/locks.nim @@ -11,7 +11,8 @@ when not compileOption("threads") and not defined(nimdoc): - {.error: "Locks requires --threads:on option.".} + when false: # fix #12330 + {.error: "Locks requires --threads:on option.".} const insideRLocksModule = false include "system/syslocks"