summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-26 03:10:11 -0800
committerAndreas Rumpf <rumpf_a@web.de>2020-02-27 13:22:18 +0100
commitc1cbf94e2d41911fe11ea98e86000f9a851fc01a (patch)
tree4ef46a239a7579c1c214f169b82842d40a2150b6 /compiler/commands.nim
parentce36fdc8974b843b2fb0404196c2778e8b0b91dd (diff)
downloadNim-c1cbf94e2d41911fe11ea98e86000f9a851fc01a.tar.gz
remove isCmdLine; use passCmd1
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 76203762c..d2f1f78b3 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -204,7 +204,7 @@ proc processSpecificNote*(arg: string, state: TSpecialWord, pass: TCmdLinePass,
     incl(conf.notes, n)
     incl(conf.mainPackageNotes, n)
     incl(conf.enableNotes, n)
-    if conf.isCmdLine:
+    if pass == passCmd1:
       incl(conf.cmdLineNotes, n)
       excl(conf.cmdLineDisabledNotes, n)
   of "off":
@@ -212,7 +212,7 @@ proc processSpecificNote*(arg: string, state: TSpecialWord, pass: TCmdLinePass,
     excl(conf.mainPackageNotes, n)
     incl(conf.disableNotes, n)
     excl(conf.foreignPackageNotes, n)
-    if conf.isCmdLine:
+    if pass == passCmd1:
       incl(conf.cmdLineDisabledNotes, n)
       excl(conf.cmdLineNotes, n)
   else: localError(conf, info, errOnOrOffExpectedButXFound % arg)