make koch and tools work with nimPreviewSlimSystem (#20459)

This commit is contained in:
ringabout 2022-09-30 08:09:40 +08:00 • committed by GitHub
commit 3e43ea3384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 4 deletions

View file

@ -34,6 +34,9 @@ import std/[os, strutils, parseopt, osproc]
# If this fails with: `Error: cannot open file: std/os`, see
# https://github.com/nim-lang/Nim/pull/14291 for explanation + how to fix.
when defined(nimPreviewSlimSystem):
import std/[assertions, syncio]
import tools / kochdocs
import tools / deps