mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
fixes bootstrapping
This commit is contained in:
@@ -193,6 +193,8 @@ when defined(nimNewShared):
|
||||
`shared`* {.magic: "Shared".}
|
||||
guarded* {.magic: "Guarded".}
|
||||
|
||||
include "system/inclrtl"
|
||||
|
||||
const NoFakeVars* = defined(NimrodVM) ## true if the backend doesn't support \
|
||||
## "fake variables" like 'var EBADF {.importc.}: cint'.
|
||||
|
||||
@@ -1027,8 +1029,6 @@ template sysAssert(cond: bool, msg: string) =
|
||||
echo "[SYSASSERT] ", msg
|
||||
quit 1
|
||||
|
||||
include "system/inclrtl"
|
||||
|
||||
when not defined(JS) and not defined(nimrodVm) and hostOS != "standalone":
|
||||
include "system/cgprocs"
|
||||
|
||||
|
||||
@@ -121,6 +121,7 @@ proc slave(w: ptr Worker) {.thread.} =
|
||||
signal(gSomeReady)
|
||||
await(w.taskArrived)
|
||||
assert(not w.ready)
|
||||
# shield against spurious wakeups:
|
||||
if w.data != nil:
|
||||
w.f(w, w.data)
|
||||
w.data = nil
|
||||
|
||||
Reference in New Issue
Block a user