summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/core/rlocks.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/core/rlocks.nim b/lib/core/rlocks.nim
index 5f155262a..a1ee0a6ec 100644
--- a/lib/core/rlocks.nim
+++ b/lib/core/rlocks.nim
@@ -11,7 +11,10 @@
 
 
 when not compileOption("threads") and not defined(nimdoc):
-  {.error: "Rlocks requires --threads:on option.".}
+  when false:
+    # make rlocks modlue consistent with locks module,
+    # so they can replace each other seamlessly.
+    {.error: "Rlocks requires --threads:on option.".}
 
 const insideRLocksModule = true
 include "system/syslocks"