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

@ -59,6 +59,9 @@ runnableExamples:
import std/private/since
when defined(nimPreviewSlimSystem):
import std/assertions
when not defined(nimHasCursor):
{.pragma: cursor.}

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)

View file

@ -39,6 +39,9 @@ runnableExamples:
import strutils, parseutils, base64
import std/private/[since, decode_helpers]
when defined(nimPreviewSlimSystem):
import std/assertions
type
Url* = distinct string

View file

@ -33,6 +33,10 @@ runnableExamples:
import std/private/since
import macros, strtabs, strutils
when defined(nimPreviewSlimSystem):
import std/assertions
type
XmlNode* = ref XmlNodeObj ## An XML tree consisting of XML nodes.
##