refactoring: make projectMainIdx typesafe

This commit is contained in:
Andreas Rumpf 2018-05-27 22:30:36 +02:00
commit 545b1582cd
7 changed files with 17 additions and 21 deletions

View file

@ -79,7 +79,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
conf.projectName = p.name
else:
conf.projectPath = canonicalizePath(conf, getCurrentDir())
loadConfigs(DefaultConfig, conf) # load all config files
loadConfigs(DefaultConfig, cache, conf) # load all config files
let scriptFile = conf.projectFull.changeFileExt("nims")
if fileExists(scriptFile):
runNimScript(cache, scriptFile, freshDefines=false, conf)