Only print the link command when listCmd is active; fix docs (#13603)

This commit is contained in:
Clyybber 2020-03-07 23:53:43 +01:00 • committed by GitHub
commit eae31a7f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -489,7 +489,7 @@ proc addExternalFileToLink*(conf: ConfigRef; filename: AbsoluteFile) =
conf.externalToLink.insert(filename.string, 0) conf.externalToLink.insert(filename.string, 0)
proc execWithEcho(conf: ConfigRef; cmd: string, msg = hintExecuting): int = 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) result = execCmd(cmd)
proc execExternalProgram*(conf: ConfigRef; cmd: string, msg = hintExecuting) = proc execExternalProgram*(conf: ConfigRef; cmd: string, msg = hintExecuting) =

View file

@ -1,7 +1,6 @@
# Special configuration file for the Nim project # Special configuration file for the Nim project
hint[XDeclaredButNotUsed]:off hint[XDeclaredButNotUsed]:off
hint[Link]:off
define:booting define:booting
define:nimcore define:nimcore

View file

@ -125,8 +125,8 @@ Advanced options:
dynlib: "liblua.so.3" dynlib: "liblua.so.3"
--dynlibOverrideAll --dynlibOverrideAll
disables the effects of the dynlib pragma disables the effects of the dynlib pragma
--listCmd list the compilation commands; can be combined with: --listCmd list the compilation commands; can be combined with
--hint:exec:on and --hint:link:on `--hint:exec:on` and `--hint:link:on`
--asm produce assembler code --asm produce assembler code
--parallelBuild:0|1|... perform a parallel build --parallelBuild:0|1|... perform a parallel build
value = number of processors (0 for auto-detect) value = number of processors (0 for auto-detect)