Skip to content

Commit

Permalink
alternative to nim-lang#18185 (nim-lang#18206)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored and PMunch committed Mar 28, 2022
1 parent 1b81426 commit d58581c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/core/rlocks.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d58581c

Please sign in to comment.