alternative to #18185 (#18206)

This commit is contained in:
flywind 2021-06-07 21:32:37 +08:00 • committed by GitHub
commit 5bad022d58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,9 @@
when not compileOption("threads") and not defined(nimdoc): when not compileOption("threads") and not defined(nimdoc):
when false:
# make rlocks modlue consistent with locks module,
# so they can replace each other seamlessly.
{.error: "Rlocks requires --threads:on option.".} {.error: "Rlocks requires --threads:on option.".}
const insideRLocksModule = true const insideRLocksModule = true