parent
717da9f158
commit
738c957e94
3 changed files with 7 additions and 0 deletions
|
|
@ -381,6 +381,9 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||||
of "nonimblepath", "nobabelpath":
|
of "nonimblepath", "nobabelpath":
|
||||||
expectNoArg(conf, switch, arg, pass, info)
|
expectNoArg(conf, switch, arg, pass, info)
|
||||||
disableNimblePath(conf)
|
disableNimblePath(conf)
|
||||||
|
of "clearnimblepath":
|
||||||
|
expectNoArg(conf, switch, arg, pass, info)
|
||||||
|
clearNimblePath(conf)
|
||||||
of "excludepath":
|
of "excludepath":
|
||||||
expectArg(conf, switch, arg, pass, info)
|
expectArg(conf, switch, arg, pass, info)
|
||||||
let path = processPath(conf, arg, info)
|
let path = processPath(conf, arg, info)
|
||||||
|
|
|
||||||
|
|
@ -546,6 +546,9 @@ proc disableNimblePath*(conf: ConfigRef) =
|
||||||
incl conf.globalOptions, optNoNimblePath
|
incl conf.globalOptions, optNoNimblePath
|
||||||
conf.lazyPaths.setLen(0)
|
conf.lazyPaths.setLen(0)
|
||||||
|
|
||||||
|
proc clearNimblePath*(conf: ConfigRef) =
|
||||||
|
conf.lazyPaths.setLen(0)
|
||||||
|
|
||||||
include packagehandling
|
include packagehandling
|
||||||
|
|
||||||
proc getOsCacheDir(): string =
|
proc getOsCacheDir(): string =
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,7 @@ Advanced options:
|
||||||
--putenv:key=value set an environment variable
|
--putenv:key=value set an environment variable
|
||||||
--NimblePath:PATH add a path for Nimble support
|
--NimblePath:PATH add a path for Nimble support
|
||||||
--noNimblePath deactivate the Nimble path
|
--noNimblePath deactivate the Nimble path
|
||||||
|
--clearNimblePath empty the list of Nimble package search paths
|
||||||
--noCppExceptions use default exception handling with C++ backend
|
--noCppExceptions use default exception handling with C++ backend
|
||||||
--cppCompileToNamespace:namespace
|
--cppCompileToNamespace:namespace
|
||||||
use the provided namespace for the generated C++ code,
|
use the provided namespace for the generated C++ code,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue