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
commit 19cc494b80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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