From eae31a7f8d5f26bbfc27c3f0746a583154d451c9 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Sat, 7 Mar 2020 23:53:43 +0100 Subject: Only print the link command when listCmd is active; fix docs (#13603) --- compiler/extccomp.nim | 2 +- compiler/nim.cfg | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler') diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index b9d0f0ff6..b115721df 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -489,7 +489,7 @@ proc addExternalFileToLink*(conf: ConfigRef; filename: AbsoluteFile) = conf.externalToLink.insert(filename.string, 0) proc execWithEcho(conf: ConfigRef; cmd: string, msg = hintExecuting): int = - rawMessage(conf, msg, cmd) + rawMessage(conf, msg, if msg == hintLinking and not(optListCmd in conf.globalOptions or conf.verbosity > 1): "" else: cmd) result = execCmd(cmd) proc execExternalProgram*(conf: ConfigRef; cmd: string, msg = hintExecuting) = diff --git a/compiler/nim.cfg b/compiler/nim.cfg index f913e76a3..a77fa84d3 100644 --- a/compiler/nim.cfg +++ b/compiler/nim.cfg @@ -1,7 +1,6 @@ # Special configuration file for the Nim project hint[XDeclaredButNotUsed]:off -hint[Link]:off define:booting define:nimcore -- cgit 1.4.1-2-gfad0