diff options
author | Clay Sweetser <clay.sweetser@gmail.com> | 2014-07-29 21:23:18 -0400 |
---|---|---|
committer | Clay Sweetser <clay.sweetser@gmail.com> | 2014-07-29 21:23:18 -0400 |
commit | 6a09fc358e5e799fdf5c0f79774d475d2fb02e6f (patch) | |
tree | d87e5e4f2c09907f9da6b7a4575c0d75f8202cb4 /compiler | |
parent | 1b6abccba2c220ba153e29b8a6ae4ad3038a00c3 (diff) | |
download | Nim-6a09fc358e5e799fdf5c0f79774d475d2fb02e6f.tar.gz |
Clean up a bit.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 6edbbd61a..ee2f2a7f7 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -290,14 +290,14 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) = options.gNoBabelPath = true of "excludepath": expectArg(switch, arg, pass, info) - let - path = processPath(arg) - strippedPath = removeTrailingDirSep(path) + let path = processPath(arg) echo repr(options.searchPaths) lists.excludePath(options.searchPaths, path) lists.excludePath(options.lazyPaths, path) - lists.excludePath(options.searchPaths, strippedPath) - lists.excludePath(options.lazyPaths, strippedPath) + if (len(path) > 0) and (path[len(path) - 1] == DirSep):: + let strippedPath = removeTrailingDirSep(path) + lists.excludePath(options.searchPaths, strippedPath) + lists.excludePath(options.lazyPaths, strippedPath) echo repr(options.searchPaths) of "nimcache": expectArg(switch, arg, pass, info) |