summary refs log tree commit diff stats
path: root/compiler/packages.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-08-09 16:32:29 +0800
committerGitHub <noreply@github.com>2022-08-09 16:32:29 +0800
commite8ae2dc90ba62466b3aba212df133f7ad564cbab (patch)
tree902ded8319f73e6df66a0aa4ba875d2ef50e13d3 /compiler/packages.nim
parentcddd4de658fccc9c715cebb6788312f82d5b03a8 (diff)
downloadNim-e8ae2dc90ba62466b3aba212df133f7ad564cbab.tar.gz
bootstrap the compiler with nimPreviewSlimSystem (#20176)
* bootstrap the compiler with nimPreviewSlimSystem

* threads
Diffstat (limited to 'compiler/packages.nim')
-rw-r--r--compiler/packages.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/packages.nim b/compiler/packages.nim
index 6ceeb1ccc..d8b97e374 100644
--- a/compiler/packages.nim
+++ b/compiler/packages.nim
@@ -16,6 +16,10 @@
 
 import "." / [options, ast, lineinfos, idents, pathutils, msgs]
 
+when defined(nimPreviewSlimSystem):
+  import std/assertions
+
+
 proc getPackage*(conf: ConfigRef; cache: IdentCache; fileIdx: FileIndex): PSym =
   ## Return a new package symbol.
   ##