parent
6e5c2af203
commit
bae662fa8a
1 changed files with 1 additions and 6 deletions
|
|
@ -61,12 +61,7 @@ proc loadConfigsAndRunMainCommand*(self: NimProg, cache: IdentCache; conf: Confi
|
||||||
template runNimScriptIfExists(path: AbsoluteFile) =
|
template runNimScriptIfExists(path: AbsoluteFile) =
|
||||||
let p = path # eval once
|
let p = path # eval once
|
||||||
if fileExists(p):
|
if fileExists(p):
|
||||||
var tempConf = newConfigRef()
|
runNimScript(cache, p, freshDefines = false, conf)
|
||||||
setDefaultLibpath(tempConf)
|
|
||||||
initDefines(tempConf.symbols)
|
|
||||||
mergeConfigs(tempConf, conf, mergeSymbols = false)
|
|
||||||
runNimScript(cache, p, freshDefines = false, tempConf)
|
|
||||||
mergeConfigs(conf, tempConf, mergeSymbols = true)
|
|
||||||
|
|
||||||
# Caution: make sure this stays in sync with `loadConfigs`
|
# Caution: make sure this stays in sync with `loadConfigs`
|
||||||
if optSkipSystemConfigFile notin conf.globalOptions:
|
if optSkipSystemConfigFile notin conf.globalOptions:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue