Use `when insideRLocksModule instead of when compiles`
This commit is contained in:
parent
ebc02f6dc0
commit
45bbecb021
3 changed files with 4 additions and 2 deletions
|
|
@ -2884,6 +2884,7 @@ when not defined(JS): #and not defined(nimscript):
|
|||
when declared(initAllocator):
|
||||
initAllocator()
|
||||
when hasThreadSupport:
|
||||
const insideRLocksModule = false
|
||||
include "system/syslocks"
|
||||
when hostOS != "standalone": include "system/threads"
|
||||
elif not defined(nogc) and not defined(nimscript):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue