put std/threads under the umbrella of nimPreviewSlimSystem (#20711)
* put `std/threads` under the umbrella of `nimPreviewSlimSystem` * add changelog * fixes tests * fixes tests again * fixes tests
This commit is contained in:
parent
fb2ec8d192
commit
e1ddd2d524
13 changed files with 33 additions and 19 deletions
|
|
@ -2093,9 +2093,10 @@ when not defined(js):
|
|||
when hasThreadSupport:
|
||||
when hostOS != "standalone":
|
||||
include system/threadimpl
|
||||
|
||||
import std/threads
|
||||
export threads
|
||||
when not defined(nimPreviewSlimSystem):
|
||||
{.deprecated: "threads is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/threads`".}
|
||||
import std/threads
|
||||
export threads
|
||||
|
||||
elif not defined(nogc) and not defined(nimscript):
|
||||
when not defined(useNimRtl) and not defined(createNimRtl): initStackBottom()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue