diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-26 12:49:44 -0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-02-27 13:22:18 +0100 |
commit | 1056f9ecff60f624522f24e508d0976994bcef80 (patch) | |
tree | adc7f492f880d575a29457bf27d5824d253210b4 /compiler/passaux.nim | |
parent | c1cbf94e2d41911fe11ea98e86000f9a851fc01a (diff) | |
download | Nim-1056f9ecff60f624522f24e508d0976994bcef80.tar.gz |
properly handle note override logic/verbosity/config/cmdline using modifiedyNotes, cmdlineNotes
Diffstat (limited to 'compiler/passaux.nim')
-rw-r--r-- | compiler/passaux.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/passaux.nim b/compiler/passaux.nim index 2ac89c24e..155b956df 100644 --- a/compiler/passaux.nim +++ b/compiler/passaux.nim @@ -28,8 +28,8 @@ proc verboseProcess(context: PPassContext, n: PNode): PNode = let v = VerboseRef(context) if v.config.verbosity == 3: # system.nim deactivates all hints, for verbosity:3 we want the processing - # messages nonetheless, so we activate them again unconditionally: - incl(v.config.notes, hintProcessing) + # messages nonetheless, so we activate them again (but honor cmdlineNotes) + v.config.setNote(hintProcessing) message(v.config, n.info, hintProcessing, $idgen.gFrontEndId) const verbosePass* = makePass(open = verboseOpen, process = verboseProcess) |