--listCmd also needs to affect linking step

This commit is contained in:
Andreas Rumpf 2016-07-13 21:26:58 +02:00
commit b43d5148c5
2 changed files with 2 additions and 3 deletions

View file

@ -754,7 +754,7 @@ proc callCCompiler*(projectfile: string) =
"lib", quoteShell(libpath)])
if optCompileOnly notin gGlobalOptions:
execExternalProgram(linkCmd,
if gVerbosity > 1: hintExecuting else: hintLinking)
if optListCmd in gGlobalOptions or gVerbosity > 1: hintExecuting else: hintLinking)
else:
linkCmd = ""
if optGenScript in gGlobalOptions: