* honor --errorMax even for tools (eg drnim, nim doc) (#14546)
* fix a bug that prevented nim doc compiler/nim on windows
This commit is contained in:
parent
621384b8ef
commit
4301a3da9d
9 changed files with 22 additions and 15 deletions
|
|
@ -137,6 +137,7 @@ proc destroyInterpreter*(i: Interpreter) =
|
|||
proc runRepl*(r: TLLRepl;
|
||||
searchPaths: openArray[string];
|
||||
supportNimscript: bool) =
|
||||
## deadcode but please don't remove... might be revived
|
||||
var conf = newConfigRef()
|
||||
var cache = newIdentCache()
|
||||
var graph = newModuleGraph(cache, conf)
|
||||
|
|
@ -146,7 +147,7 @@ proc runRepl*(r: TLLRepl;
|
|||
if conf.libpath.isEmpty: conf.libpath = AbsoluteDir p
|
||||
|
||||
conf.cmd = cmdInteractive
|
||||
conf.errorMax = high(int)
|
||||
conf.setErrorMaxHighMaybe
|
||||
initDefines(conf.symbols)
|
||||
defineSymbol(conf.symbols, "nimscript")
|
||||
if supportNimscript: defineSymbol(conf.symbols, "nimconfig")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue