summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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"
a id='n49' href='#n49'>49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111