[easy] --hint🔗on now shows link cmd instead of nothing (#13056)

* --hint🔗on now shows link cmd instead of nothing

* update doc for --listCmd
This commit is contained in:
Timothee Cour 2020-01-07 01:38:59 -08:00 • committed by Andreas Rumpf
commit e5ae7ceaa3
4 changed files with 7 additions and 4 deletions

3
.gitignore vendored
View file

@ -86,3 +86,6 @@ megatest.nim
/lib/pure/*.js /lib/pure/*.js
!/.builds/ !/.builds/
# ignore debug dirs generated by dsymutil on OSX
*.dSYM

View file

@ -835,8 +835,7 @@ template tryExceptOSErrorMessage(conf: ConfigRef; errorPrefix: string = "", body
proc execLinkCmd(conf: ConfigRef; linkCmd: string) = proc execLinkCmd(conf: ConfigRef; linkCmd: string) =
tryExceptOSErrorMessage(conf, "invocation of external linker program failed."): tryExceptOSErrorMessage(conf, "invocation of external linker program failed."):
execExternalProgram(conf, linkCmd, execExternalProgram(conf, linkCmd, hintLinking)
if optListCmd in conf.globalOptions or conf.verbosity > 1: hintExecuting else: hintLinking)
proc maybeRunDsymutil(conf: ConfigRef; exe: AbsoluteFile) = proc maybeRunDsymutil(conf: ConfigRef; exe: AbsoluteFile) =
when defined(osx): when defined(osx):

View file

@ -115,7 +115,7 @@ const
hintName: "$1", hintName: "$1",
hintPattern: "$1", hintPattern: "$1",
hintExecuting: "$1", hintExecuting: "$1",
hintLinking: "", hintLinking: "$1",
hintDependency: "$1", hintDependency: "$1",
hintSource: "$1", hintSource: "$1",
hintPerformance: "$1", hintPerformance: "$1",

View file

@ -117,7 +117,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 commands used to execute external programs --listCmd list the compilation commands; can be combined with:
--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)