Skip to content

Commit

Permalink
Only print the link command when listCmd is active; fix docs (#13603)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber authored Mar 7, 2020
1 parent 6a5b381 commit eae31a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/extccomp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down
1 change: 0 additions & 1 deletion compiler/nim.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Special configuration file for the Nim project

hint[XDeclaredButNotUsed]:off
hint[Link]:off

define:booting
define:nimcore
Expand Down
4 changes: 2 additions & 2 deletions doc/advopt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ Advanced options:
dynlib: "liblua.so.3"
--dynlibOverrideAll
disables the effects of the dynlib pragma
--listCmd list the compilation commands; can be combined with:
--hint:exec:on and --hint:link:on
--listCmd list the compilation commands; can be combined with
`--hint:exec:on` and `--hint:link:on`
--asm produce assembler code
--parallelBuild:0|1|... perform a parallel build
value = number of processors (0 for auto-detect)
Expand Down

0 comments on commit eae31a7

Please sign in to comment.