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"