parent
bc14b77359
commit
c94933acb7
1 changed files with 4 additions and 0 deletions
|
|
@ -537,6 +537,10 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||||
conf.lazyPaths.keepItIf(it != path)
|
conf.lazyPaths.keepItIf(it != path)
|
||||||
of "nimcache":
|
of "nimcache":
|
||||||
expectArg(conf, switch, arg, pass, info)
|
expectArg(conf, switch, arg, pass, info)
|
||||||
|
var arg = arg
|
||||||
|
# refs bug #18674, otherwise `--os:windows` messes up with `--nimcache` set
|
||||||
|
# in config nims files, e.g. via: `import os; switch("nimcache", "/tmp/somedir")`
|
||||||
|
if conf.target.targetOS == osWindows and DirSep == '/': arg = arg.replace('\\', '/')
|
||||||
conf.nimcacheDir = processPath(conf, arg, info, notRelativeToProj=true)
|
conf.nimcacheDir = processPath(conf, arg, info, notRelativeToProj=true)
|
||||||
of "out", "o":
|
of "out", "o":
|
||||||
expectArg(conf, switch, arg, pass, info)
|
expectArg(conf, switch, arg, pass, info)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue