compiler API: introduce options.disableNmiblePath
This commit is contained in:
parent
fb14ec9aae
commit
842f66db25
2 changed files with 7 additions and 4 deletions
|
|
@ -331,10 +331,7 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
|
||||||
nimblePath(path, info)
|
nimblePath(path, info)
|
||||||
of "nonimblepath", "nobabelpath":
|
of "nonimblepath", "nobabelpath":
|
||||||
expectNoArg(switch, arg, pass, info)
|
expectNoArg(switch, arg, pass, info)
|
||||||
options.gNoNimblePath = true
|
disableNimblePath()
|
||||||
options.lazyPaths.head = nil
|
|
||||||
options.lazyPaths.tail = nil
|
|
||||||
options.lazyPaths.counter = 0
|
|
||||||
of "excludepath":
|
of "excludepath":
|
||||||
expectArg(switch, arg, pass, info)
|
expectArg(switch, arg, pass, info)
|
||||||
let path = processPath(arg, info)
|
let path = processPath(arg, info)
|
||||||
|
|
|
||||||
|
|
@ -254,6 +254,12 @@ proc removeTrailingDirSep*(path: string): string =
|
||||||
else:
|
else:
|
||||||
result = path
|
result = path
|
||||||
|
|
||||||
|
proc disableNimblePath*() =
|
||||||
|
gNoNimblePath = true
|
||||||
|
lazyPaths.head = nil
|
||||||
|
lazyPaths.tail = nil
|
||||||
|
lazyPaths.counter = 0
|
||||||
|
|
||||||
include packagehandling
|
include packagehandling
|
||||||
|
|
||||||
proc getNimcacheDir*: string =
|
proc getNimcacheDir*: string =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue