fix #8312 --hints:off and --warnings:off now honored everywhere (#13489)

This commit is contained in:
Timothee Cour 2020-02-26 01:26:47 -08:00 • committed by GitHub
commit bd90199a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 26 additions and 22 deletions

View file

@ -715,7 +715,7 @@ proc compileCFiles(conf: ConfigRef; list: CfileList, script: var Rope, cmds: var
if optCompileOnly notin conf.globalOptions:
cmds.add(compileCmd)
let (_, name, _) = splitFile(it.cname)
prettyCmds.add(if hintCC in conf.notes: "CC: " & demanglePackageName(name) else: "")
prettyCmds.add(if conf.hasHint(hintCC): "CC: " & demanglePackageName(name) else: "")
if optGenScript in conf.globalOptions:
script.add(compileCmd)
script.add("\n")