echo: only lock when threading is enabled (#20890)

This commit is contained in:
Tanguy
2022-11-21 20:56:54 +01:00
committed by GitHub
parent bce1f35f87
commit 19cc494b80

View File

@@ -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