Skip to content

Commit 5bad022

Browse files
authored
alternative to #18185 (#18206)
1 parent 429b128 commit 5bad022

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/core/rlocks.nim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212

1313
when not compileOption("threads") and not defined(nimdoc):
14-
{.error: "Rlocks requires --threads:on option.".}
14+
when false:
15+
# make rlocks modlue consistent with locks module,
16+
# so they can replace each other seamlessly.
17+
{.error: "Rlocks requires --threads:on option.".}
1518

1619
const insideRLocksModule = true
1720
include "system/syslocks"

0 commit comments

Comments
 (0)