From 80609ab96e830810d9e8b3e5e9c28a37f5ebdffb Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 1 Oct 2019 21:58:47 -0700 Subject: [PATCH] fix #12330 --- 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 392c8aed45403..42d67388f2082 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"