move more global variables into ConfigRef
This commit is contained in:
parent
a8a544a8f7
commit
3c4ceea427
11 changed files with 109 additions and 101 deletions
|
|
@ -152,7 +152,7 @@ proc getModuleName*(conf: ConfigRef; n: PNode): string =
|
|||
let x = addFileExt(a, "nim")
|
||||
if fileExists(x): return x
|
||||
for candidate in stdlibDirs:
|
||||
attempt(options.libpath / candidate / modname)
|
||||
attempt(conf.libpath / candidate / modname)
|
||||
|
||||
# hacky way to implement 'x / y /../ z':
|
||||
result = getModuleName(conf, n1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue