Added --noBabelPath override.
This commit is contained in:
parent
c3b3339e77
commit
8c1ea5cb3f
2 changed files with 5 additions and 1 deletions
|
|
@ -249,10 +249,13 @@ proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) =
|
||||||
expectArg(switch, arg, pass, info)
|
expectArg(switch, arg, pass, info)
|
||||||
addPath(processPath(arg), info)
|
addPath(processPath(arg), info)
|
||||||
of "babelpath":
|
of "babelpath":
|
||||||
if pass in {passCmd2, passPP}:
|
if pass in {passCmd2, passPP} and not options.gNoBabelPath:
|
||||||
expectArg(switch, arg, pass, info)
|
expectArg(switch, arg, pass, info)
|
||||||
let path = processPath(arg, notRelativeToProj=true)
|
let path = processPath(arg, notRelativeToProj=true)
|
||||||
babelpath(path, info)
|
babelpath(path, info)
|
||||||
|
of "nobabelpath":
|
||||||
|
expectNoArg(switch, arg, pass, info)
|
||||||
|
options.gNoBabelPath = true
|
||||||
of "excludepath":
|
of "excludepath":
|
||||||
expectArg(switch, arg, pass, info)
|
expectArg(switch, arg, pass, info)
|
||||||
let path = processPath(arg)
|
let path = processPath(arg)
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,7 @@ var
|
||||||
gDirtyBufferIdx* = 0'i32 # indicates the fileIdx of the dirty version of
|
gDirtyBufferIdx* = 0'i32 # indicates the fileIdx of the dirty version of
|
||||||
# the tracked source X, saved by the CAAS client.
|
# the tracked source X, saved by the CAAS client.
|
||||||
gDirtyOriginalIdx* = 0'i32 # the original source file of the dirtified buffer.
|
gDirtyOriginalIdx* = 0'i32 # the original source file of the dirtified buffer.
|
||||||
|
gNoBabelPath* = false
|
||||||
|
|
||||||
proc importantComments*(): bool {.inline.} = gCmd in {cmdDoc, cmdIdeTools}
|
proc importantComments*(): bool {.inline.} = gCmd in {cmdDoc, cmdIdeTools}
|
||||||
proc usesNativeGC*(): bool {.inline.} = gSelectedGC >= gcRefc
|
proc usesNativeGC*(): bool {.inline.} = gSelectedGC >= gcRefc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue