correctly honor cmdline --hint:conf:on/off ; correctly show Conf hints in order

This commit is contained in:
Timothee Cour 2020-02-24 19:20:52 -08:00 • committed by Andreas Rumpf
commit ce36fdc897
6 changed files with 18 additions and 3 deletions

View file

@ -251,6 +251,7 @@ proc loadConfigs*(cfg: RelativeFile; cache: IdentCache; conf: ConfigRef) =
template runNimScriptIfExists(path: AbsoluteFile) =
let p = path # eval once
if fileExists(p):
configFiles.add(p)
runNimScript(cache, p, freshDefines = false, conf)
if optSkipSystemConfigFile notin conf.globalOptions: