Skip to content

Commit

Permalink
fixes #23429; rework --verbosity with warnings/hints (#23441)
Browse files Browse the repository at this point in the history
fixes #23429
  • Loading branch information
ringabout committed Mar 28, 2024
1 parent afc30a3 commit a24990b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/cmdlinehelper.nim
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ proc loadConfigsAndProcessCmdLine*(self: NimProg, cache: IdentCache; conf: Confi
if conf.cmd == cmdNimscript:
incl(conf.globalOptions, optWasNimscript)
loadConfigs(DefaultConfig, cache, conf, graph.idgen) # load all config files
# restores `conf.notes` after loading config files
# because it has overwrites the notes when compiling the system module which
# is a foreign module compared to the project
if conf.cmd in cmdBackends:
conf.notes = conf.mainPackageNotes

if not self.suggestMode:
let scriptFile = conf.projectFull.changeFileExt("nims")
Expand Down

0 comments on commit a24990b

Please sign in to comment.