Fix #813
Also add a notice that the linked list stuff in the compiler should be (one day) removed.
This commit is contained in:
parent
13875e5676
commit
1b6abccba2
2 changed files with 14 additions and 6 deletions
|
|
@ -290,9 +290,15 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
|
|||
options.gNoBabelPath = true
|
||||
of "excludepath":
|
||||
expectArg(switch, arg, pass, info)
|
||||
let path = processPath(arg)
|
||||
lists.excludeStr(options.searchPaths, path)
|
||||
lists.excludeStr(options.lazyPaths, path)
|
||||
let
|
||||
path = processPath(arg)
|
||||
strippedPath = removeTrailingDirSep(path)
|
||||
echo repr(options.searchPaths)
|
||||
lists.excludePath(options.searchPaths, path)
|
||||
lists.excludePath(options.lazyPaths, path)
|
||||
lists.excludePath(options.searchPaths, strippedPath)
|
||||
lists.excludePath(options.lazyPaths, strippedPath)
|
||||
echo repr(options.searchPaths)
|
||||
of "nimcache":
|
||||
expectArg(switch, arg, pass, info)
|
||||
options.nimcacheDir = processPath(arg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue