diff options
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 38c8dd294..6edbbd61a 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -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) |