* 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
|
|
@ -325,7 +325,7 @@ proc tryConstExpr(c: PContext, n: PNode): PNode =
|
|||
let oldErrorOutputs = c.config.m.errorOutputs
|
||||
|
||||
c.config.m.errorOutputs = {}
|
||||
c.config.errorMax = high(int)
|
||||
c.config.errorMax = high(int) # `setErrorMaxHighMaybe` not appropriate here
|
||||
|
||||
try:
|
||||
result = evalConstExpr(c.module, c.graph, e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue