summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/locks.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/core/locks.nim b/lib/core/locks.nim
index 392c8aed4..42d67388f 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"