mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-28 01:21:40 +00:00
echo: only lock when threading is enabled (#20890)
This commit is contained in:
@@ -2716,7 +2716,8 @@ when notJSnotNims:
|
||||
initSysLock echoLock
|
||||
addSysExitProc(proc() {.noconv.} = deinitSys(echoLock))
|
||||
|
||||
const stdOutLock = not defined(windows) and
|
||||
const stdOutLock = compileOption("threads") and
|
||||
not defined(windows) and
|
||||
not defined(android) and
|
||||
not defined(nintendoswitch) and
|
||||
not defined(freertos) and
|
||||
|
||||
Reference in New Issue
Block a user