* 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
|
|
@ -6,7 +6,9 @@ import "../compiler/nimpaths"
|
|||
|
||||
const
|
||||
gaCode* = " --doc.googleAnalytics:UA-48159761-1"
|
||||
nimArgs = "--hint:Conf:off --hint:Path:off --hint:Processing:off -d:boot --putenv:nimversion=$#" % system.NimVersion
|
||||
# errormax: subsequent errors are probably consequences of 1st one; a simple
|
||||
# bug could cause unlimited number of errors otherwise, hard to debug in CI.
|
||||
nimArgs = "--errormax:3 --hint:Conf:off --hint:Path:off --hint:Processing:off -d:boot --putenv:nimversion=$#" % system.NimVersion
|
||||
gitUrl = "https://github.com/nim-lang/Nim"
|
||||
docHtmlOutput = "doc/html"
|
||||
webUploadOutput = "web/upload"
|
||||
|
|
|
|||
|
|
@ -169,8 +169,7 @@ proc mainCommand(graph: ModuleGraph) =
|
|||
if not fileExists(conf.projectFull):
|
||||
quit "cannot find file: " & conf.projectFull.string
|
||||
add(conf.searchPaths, conf.libpath)
|
||||
# do not stop after the first error:
|
||||
conf.errorMax = high(int)
|
||||
conf.setErrorMaxHighMaybe
|
||||
try:
|
||||
compileProject(graph)
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue