diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2013-12-25 22:38:53 +0000 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2013-12-25 22:38:53 +0000 |
commit | 8c1ea5cb3f72901be47dc20366d228b0a1c9b417 (patch) | |
tree | e5ef9b954a6d0c21e45d04806663a586eec5a2d2 | |
parent | c3b3339e779dfe19ed1891295a763aea47981131 (diff) | |
download | Nim-8c1ea5cb3f72901be47dc20366d228b0a1c9b417.tar.gz |
Added --noBabelPath override.
-rw-r--r-- | compiler/commands.nim | 5 | ||||
-rw-r--r-- | compiler/options.nim | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index d3266930b..fa7841275 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -249,10 +249,13 @@ proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) = expectArg(switch, arg, pass, info) addPath(processPath(arg), info) of "babelpath": - if pass in {passCmd2, passPP}: + if pass in {passCmd2, passPP} and not options.gNoBabelPath: expectArg(switch, arg, pass, info) let path = processPath(arg, notRelativeToProj=true) babelpath(path, info) + of "nobabelpath": + expectNoArg(switch, arg, pass, info) + options.gNoBabelPath = true of "excludepath": expectArg(switch, arg, pass, info) let path = processPath(arg) diff --git a/compiler/options.nim b/compiler/options.nim index d4122c7b2..c62744485 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -111,6 +111,7 @@ var gDirtyBufferIdx* = 0'i32 # indicates the fileIdx of the dirty version of # the tracked source X, saved by the CAAS client. gDirtyOriginalIdx* = 0'i32 # the original source file of the dirtified buffer. + gNoBabelPath* = false proc importantComments*(): bool {.inline.} = gCmd in {cmdDoc, cmdIdeTools} proc usesNativeGC*(): bool {.inline.} = gSelectedGC >= gcRefc |