summary refs log tree commit diff stats
path: root/compiler/nim.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-26 01:26:47 -0800
committerGitHub <noreply@github.com>2020-02-26 10:26:47 +0100
commitbd90199a2fd37568a5f5a6c7c394b160b229e90c (patch)
tree99c1b0ba5bdc017df101794483435e9f18dcfd7a /compiler/nim.nim
parent94b0d6bb63e354c71bf072953d27c097eb7b38ca (diff)
downloadNim-bd90199a2fd37568a5f5a6c7c394b160b229e90c.tar.gz
fix #8312 --hints:off and --warnings:off now honored everywhere (#13489)
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r--compiler/nim.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim
index cc1dc2fe7..b916f0d85 100644
--- a/compiler/nim.nim
+++ b/compiler/nim.nim
@@ -93,7 +93,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
 
   self.processCmdLineAndProjectPath(conf)
   if not self.loadConfigsAndRunMainCommand(cache, conf): return
-  if optHints in conf.options and hintGCStats in conf.notes: echo(GC_getStatistics())
+  if conf.hasHint(hintGCStats): echo(GC_getStatistics())
   #echo(GC_getStatistics())
   if conf.errorCounter != 0: return
   when hasTinyCBackend: