From bd90199a2fd37568a5f5a6c7c394b160b229e90c Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 26 Feb 2020 01:26:47 -0800 Subject: fix #8312 --hints:off and --warnings:off now honored everywhere (#13489) --- compiler/nim.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/nim.nim') 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: -- cgit 1.4.1-2-gfad0