compiler API: introduce options.disableNmiblePath

This commit is contained in:
Araq 2017-01-04 20:53:25 +01:00
commit 842f66db25
2 changed files with 7 additions and 4 deletions

View file

@ -331,10 +331,7 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
nimblePath(path, info)
of "nonimblepath", "nobabelpath":
expectNoArg(switch, arg, pass, info)
options.gNoNimblePath = true
options.lazyPaths.head = nil
options.lazyPaths.tail = nil
options.lazyPaths.counter = 0
disableNimblePath()
of "excludepath":
expectArg(switch, arg, pass, info)
let path = processPath(arg, info)