bootstrap the compiler with nimPreviewSlimSystem (#20176)

* bootstrap the compiler with nimPreviewSlimSystem

* threads
This commit is contained in:
ringabout 2022-08-09 16:32:29 +08:00 • committed by GitHub
commit e8ae2dc90b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 68 additions and 1 deletions

View file

@ -286,6 +286,10 @@ efficiency and perform different checks.
import macros, parseutils
import std/private/since
when defined(nimPreviewSlimSystem):
import std/assertions
proc conditionsToIfChain(n, idx, res: NimNode; start: int): NimNode =
assert n.kind == nnkStmtList
if start >= n.len: return newAssignment(res, newLit true)