mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 10:24:44 +00:00
compiler API: introduce options.disableNmiblePath
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -254,6 +254,12 @@ proc removeTrailingDirSep*(path: string): string =
|
||||
else:
|
||||
result = path
|
||||
|
||||
proc disableNimblePath*() =
|
||||
gNoNimblePath = true
|
||||
lazyPaths.head = nil
|
||||
lazyPaths.tail = nil
|
||||
lazyPaths.counter = 0
|
||||
|
||||
include packagehandling
|
||||
|
||||
proc getNimcacheDir*: string =
|
||||
|
||||
Reference in New Issue
Block a user