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
parent 716d68cb24
commit 3e43ea3384
8 changed files with 28 additions and 4 deletions

View File

@@ -6,6 +6,9 @@ internal API for now, API subject to change
import std/[os, osproc, strutils, tempfiles]
when defined(nimPreviewSlimSystem):
import std/[assertions, syncio]
const commitHead* = "HEAD"
template retryCall*(maxRetry = 3, backoffDuration = 1.0, call: untyped): bool =