make Nim take roughly 100MB less RAM for bootstrapping via a new compiler switch -d:leanCompiler; useful for the Raberry PI

This commit is contained in:
Andreas Rumpf 2018-11-07 18:36:45 +01:00
commit cb4d810659
8 changed files with 110 additions and 63 deletions

View file

@ -15,7 +15,7 @@ import
magicsys, condsyms, idents, lexer, options, parampatterns, strutils, trees,
linter, lineinfos
when defined(booting) or defined(nimsuggest):
when (defined(booting) or defined(nimsuggest)) and not defined(leanCompiler):
import docgen
type